Ⅰ. 插件描述
Walks through diffs and quicklists with a single set of keybindings.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'goldfeld/vim-walker'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'goldfeld/vim-walker'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'goldfeld/vim-walker'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/goldfeld/vim-walker
Ⅳ. 文档说明
## vim-walker
Walker is a context-aware list stepper. Here are the heuristics used to
determine what to do:
- If you are in diff mode, he'll walk you through diffs (uses the vim built-ins
[c,]cand so forth) - If you are in a buffer with git-diff-like output (i.e. has lines beginning
with+and/or-and has filetypegit/diff), a custom algorithm will
help you walk through each change as if you were in diff mode.
- Otherwise, the commands will walk you through your quicklist (uses
:cfirst,
:cnext,:cpreviousand so on)
The following commands let you use walker to step through lists in a unified,
context-aware fashion:
| Command | Example |
|---|---|
WalkerFirst | nnoremap <Leader>f :WalkerFirst<CR> |
WalkerNext | nnoremap <Leader>d :WalkerNext<CR> |
WalkerPrev | nnoremap <Leader>s :WalkerPrev<CR> |
More to come, I'm just lazy (and that's all I really use.)
