block.vim


Ⅰ. 插件描述

Auto open a block after enter a bracket

Ⅱ. 基本信息

创建日期:  2015-01-07
使用用户:  2
Github星:  0
插件作者:  DanSnow

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Block.vim

Description

This plugin will open a block after you input left bracket and hit enter.
{<Enter> will become like

{
  <cursor here>
}

This key mapping now only for visual mode. Because delimitMate has a good support for now.

The key mapping is come from c.vim

Installation

Vundle

Insert this into your vimrc

Plugin 'DanSnow/Block.vim'

And type

:PluginInstall

Setting

You can use this to add more filetype that disable this keymapping at your vimrc.

call BlockIgnoreFiletype('<filetype>')

Author

DanSnow

添加新评论