guile.vim


Ⅰ. 插件描述

[mirror] Syntax highlighting and file type detect of GNU Guile code in Vim

Ⅱ. 基本信息

创建日期:  2019-06-10
使用用户:  1
Github星:  4
插件作者:  Alejandro Sanchez

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'hiphish/guile-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'hiphish/guile-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'hiphish/guile-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/hiphish/guile.vim

Ⅳ. 文档说明

.. default-role:: code

GNU Guile support for Vim

This plugin extends Vim's Scheme support to include the additions to the
language provided by the GNU Guile_ implementation. The plugin automatically
detects whether a Scheme file is a Guile file and adds syntax highlighting for
Guile's special forms.

Installation

Install this like any other Vim plugin.

Using the plugin

When a Guile buffer has been detected its filetype option will be set to the
value scheme.guile. This uses Vim's dotted file type (see :h 'filetype') in
order to allow users to keep using their setting any plugins for Scheme in
addition to this.

Guile is detected by either looking for a shebang in the first line (see
4.3.1 The Top of a Script File_ in the Guile manual), or by scanning the file
for an occurrence of define-module or use-modules. This is not absolutely
reliable, but it should work for the vast majority of cases.

License

Released under the MIT (Expat) license, see the COPYING_ file for details.

.. ----------------------------------------------------------------------------
.. _GNU Guile: http://www.gnu.org/software/guile/
.. _COPYING: COPYING.txt
.. _4.3.1 The Top of a Script File: info:guile.info#The%20Top%20of%20a%20Script%20File

添加新评论