Ⅰ. 插件描述
Highlight cursor line after cursor jumpⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/jumphl-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/jumphl-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/jumphl-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/jumphl.vim
Ⅳ. 文档说明
The script highlights the cursor line after a jump. This makes it easy to
spot the new cursor position. The highlight will be removed automatically
when you move the cursor within the current line, or down or up by one line.
This is a modification of
http://vim.wikia.com/wiki/Highlight_cursor_line_after_cursor_jump
COMMANDS
:DoJumpHl
:NoJumpHl
enable or disable the script. The script is disabled per default.
VARIABLES
:let g:jumphl_ignore_bufpat = '_NERD_tree_C'
Do nothing for buffers where the bufname matches this pattern.