Ⅰ. 插件描述
Some useful keymappings for movementⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/smartmove-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/smartmove-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/smartmove-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/smartmove.vim
Ⅳ. 文档说明
- Jump to next tag on screen in a help file.
When the cursor is at or after the last tag on the screen continue the search
at the top of the screen.
mapped to: <tab>, <s-tab> in normal mode
disable with: let g:loaded_smartmove_nexthelptag=-1
The mapping is created on BufEnter when buftype=help or the buffer is readonly
and filetype=help.
- Use H and L instead of ctrl-f and ctrl-b
When the cursor is at the top of the screen and H is pressed the screen is
scrolled up. When count is given or the cursor is not at the top of the screen,
the default function of H is executed (Home). Similar for L.
mapped to: H, L in normal and visual mode
disable with: let g:loaded_smartmove_smartscreen=-1
- Make Home/End keys smarter
Home key toggles between ^/0 on normal lines. On wrapped lines it will move the
cursor to the beginning of the current screen line and if it is already there
it will move one line up. Similar functionality is provided for the End key.
To enable :call smartmove#MapHomeEnd()
Similar: vimscript#3336