Ⅰ. 插件描述
Sane cursorcolumn and cursorline handlingⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mtth/cursorcross-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mtth/cursorcross-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mtth/cursorcross-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mtth/cursorcross.vim
Ⅳ. 文档说明
Cursorcross.vim
Refreshingly sane cursorcolumn and cursorline handling.
Configuration
Four options are available:
g:cursorcross_dynamic = 'clw', which features to dynamically handle:- :code:
'c'triggers :code:cursorcolumnin insert mode when the cursor
is at the beginning of the line. - :code:
'l'activates :code:cursorlinein normal mode and turns it off
when entering insert mode. - :code:
'w'automatically disables :code:cursorcolumnand
:code:cursorlinein non-focused windows. When entering a window, both
variables are restored to their previous state.
- :code:
g:cursorcross_exceptions = [], list of filetypes where dynamic mode will
be disabled.g:cursorcross_disable = 0, disable the plugin.g:cursorcross_mappings = 1, create the following mappings:-to togglecursorline.|to togglecursorcolumn.
Additionally, the CursorcrossToggle command can be used to disable all
dynamic modes globally.