Ⅰ. 插件描述
A very basic vim plugin for the Encore programming languageⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'thegrandmother/vimcore'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'thegrandmother/vimcore'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'thegrandmother/vimcore'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/thegrandmother/vimcore
Ⅳ. 文档说明
# vimcore
This is a very basic vim plugin for the encore programming language.

Features
Syntax Highlighting
This plugin provides syntax highlighting, some error checking and some fancypantsy unicode magic.
Error checking
The error checking can as of now only mark parse errors due to me not being any good
fixing syntstic formatting expressions. Other errors still gets displayed in the location
list but they are not located in the code.
Macros
Vimcore provides some basic but awesome macros!
<leader>ecAdds a comments out the current line in normal mode
and the entire block in visual mode.<leader>eCRemoves comment. Works in the same way as<leader>ec<leader>edCreates a method definition template.<leader>eiCreates an if-statement template.<leader>eieCreates an if-then-else template.<leader>erCreates a repeat template.<leader>efCreates a for each template.<leader>emCreates a match template.
NOTE
When you create a template <++> will appear in the template. These
may look strange but they are super awesome. You jump to the next <++> and change
it with <leader>- in normal mode and <c-_> in insert mode.
They make the templates awesome :D
Installation
Just clone this repo into your .vim/bundles/ directory and it should be working.
You need syntastic for the error checking to work.
Vundle
If you use Vundle, just place a
Plugin 'TheGrandmother/vimcore'in your .vimrc and run :PluginInstall.