vim-smart-insert-tab


Ⅰ. 插件描述

Insert necessary number of tabs with only one keypress

Ⅱ. 基本信息

创建日期:  2016-08-27
使用用户:  1
Github星:  2
插件作者:  Alex Lebedev

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'axlebedev/vim-smart-insert-tab-impatience-and-laziness'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'axlebedev/vim-smart-insert-tab-impatience-and-laziness'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'axlebedev/vim-smart-insert-tab-impatience-and-laziness'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/axlebedev/vim-smart-insert-tab

Ⅳ. 文档说明

A Vim plugin for easier indenting line from insert mode
(sublime-like behavior)

Usage

Press <Tab> in insert mode.

Example of workflow

Configuration

The simplest way to make it work, map <Tab> key:

inoremap <expr><Tab> SmartInsertTab()

Don't forget about other plugins that use <Tab>.
e.g. with _neocomplete_:

inoremap <expr><TAB> pumvisible() ? "\<C-n>" : SmartInsertTab()

Contribution

Contributions and pull requests are welcome.

License

MIT

添加新评论