Ⅰ. 插件描述
Insert necessary number of tabs with only one keypressⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'alexey-broadcast/vim-smart-insert-tab'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'alexey-broadcast/vim-smart-insert-tab'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'alexey-broadcast/vim-smart-insert-tab'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/alexey-broadcast/vim-smart-insert-tab
Ⅳ. 文档说明
A Vim plugin for easier indenting line from insert mode
(sublime-like behavior)
Usage
Press <Tab> in insert mode.

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