Ⅰ. 插件描述
Golo Vim syntaxⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jponge/vim-golo'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jponge/vim-golo'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jponge/vim-golo'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jponge/vim-golo
Ⅳ. 文档说明
# Golo Vim plugin
This bundle adds a basic syntax support for the Golo programming language,
as well as some default customisations and plugins configurations.
Install using Plug:
Plug 'jponge/vim-golo'It works best when used in combination with Pathogen:
cd ~/.vim/bundle
git clone git://github.com/jponge/vim-golo.git
If you're using Vim without Pathogen:
On a Unix derivative operating system:
- Copy
syntax/golo.vimto~/.vim/syntax/golo.vim - Copy
ftdetect/golo.vimto~/.vim/ftdetect/golo.vim - Copy
indent/golo.vimto~/.vim/indent/golo.vim - Copy
compiler/golo.vimto~/.vim/compiler/golo.vim - Copy
ftplugin/golo.vimto~/.vim/ftplugin/golo.vim - If you use the Snipmate plugin,
copysnippets/golo.snippetsto itssnippetsdirectory - If you use the syntastic plugin
copysyntax_checkers/golo/golo.vimto itssyntax_checkers/golodirectory
- Copy
On Windows:
- Copy
syntax/golo.vimto$HOME/vimfiles/syntax/golo.vim - Copy
ftdetect/golo.vimto$HOME/vimfiles/ftdetect/golo.vim - Copy
indent/golo.vimto$HOME/vimfiles/indent/golo.vim - Copy
compiler/golo.vimto$HOME/vimfiles/compiler/golo.vim - Copy
ftplugin/golo.vimto$HOME/vimfiles/ftplugin/golo.vim - If you use the Snipmate plugin,
copysnippets/golo.snippetsto itssnippetsdirectory - If you use the syntastic plugin
copysyntax_checkers/golo/golo.vimto itssyntax_checkers/golodirectory
- Copy
You can see value of $HOME by entering the following command in Vim : :echo $HOME.
Status
The current form brings basic syntax highlighting in Vim, which is already better than monochrome text.
The Tagbar plugin configuration in ftplugin/golo.vim needs a Golo version that can generate ctags.
I am no Vim tuning expert, so feel-free to contribute improvements! (pull requests only)
Legalese
Copyright (C) 2013 Julien Ponge.
This Vim bundle is published under a MIT-style license: see the LICENSE file.