Ⅰ. 插件描述
Overload theⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/tabindent'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/tabindent'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/tabindent'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/TabIndent
Ⅳ. 文档说明
The TabIndent plugin allows you use the <Tab> key in Insert mode to indent the current line, as well as retain its usual task of inserting a real <Tab> character. TabIndent exhibits a bit of intelligence by making sure that the current line is only indented if you're editing source code, by checking the 'cindent' and 'indentexpr' options. Editing text files will never cause the <Tab> key to perform indentation.
You can also change the behaviour of when indentation is performed; some people prefer <Tab> to always perform indentation, and others may want to indent only if the cursor is at the start of the line. TabIndent is designed to make every user work the way they want to.