Ⅰ. 插件描述
Using tabs only for indentation while editingⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/tabs-only-for-indentation'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/tabs-only-for-indentation'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/tabs-only-for-indentation'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Tabs-only-for-indentation
Ⅳ. 文档说明
This plugin allows you to insert tabs only for indentation.
If left part of the cursor position in current line has only tabs or spaces,
then they will be replaced by tabs and one more tab will be added.
In other cases, only spaces will be added. That's all.
I think, it will helpful because tabs not used for code alignment.
But, if you really need to insert tab, you can use <S-Tab> for this.
PS: Sorry, another plugin doing the same can be found here:
http://www.vim.org/scripts/script.php?script_id=2308
I didn't search at all.