vimcore


Ⅰ. 插件描述

A very basic vim plugin for the Encore programming language

Ⅱ. 基本信息

创建日期:  2016-04-07
使用用户:  1
Github星:  2
插件作者:  Henrik Sommerland

Ⅲ. 安装方法

使用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.

Example

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>ec Adds a comments out the current line in normal mode
    and the entire block in visual mode.
  • <leader>eC Removes comment. Works in the same way as <leader>ec
  • <leader>ed Creates a method definition template.
  • <leader>ei Creates an if-statement template.
  • <leader>eie Creates an if-then-else template.
  • <leader>er Creates a repeat template.
  • <leader>ef Creates a for each template.
  • <leader>em Creates 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.

添加新评论