Ⅰ. 插件描述
Sensible Capital Letter MappingsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'richsoni/vim-capmap'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'richsoni/vim-capmap'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'richsoni/vim-capmap'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/richsoni/vim-capmap
Ⅳ. 文档说明
# capmap.vim
Introduction
This plugin was taken from my own mappings. I saw that there was a pattern to many of them, and
I wanted to share the pattern with colleagues. Rather than boring them with the theory, and having them
manually add the keybindings, I decided to wrap it in this plugin.
It does nothing fancy, it is just a wrapper for a set of similar keybindings.
ADJACENT BUFFER CLOSING
The following mappings allow you to |:q!| adjacent buffers without
leaving the current buffer. This is especially useful for 'diff' and
'quickfix' windows.
ZH <C-W>h :wq!<cr>
ZL <C-W>l :wq!<cr>
ZK <C-W>k :wq!<cr>
ZJ <C-W>j :wq!<cr>Installation
"If you don't have a preferred installation method, I recommend
installing pathogen.vim, and
then simply copy and paste:
cd ~/.vim/bundle
git clone git://github.com/richsoni/vim-capmap.git" ~Tim Pope @timpope
Once help tags have been generated, you can view the manual with:help capmap.
Self-Promotion
Like capmap.vim? Follow the repository on
GitHub and vote for it on
If you like more of my stuff follow me on:
Twitter and
GitHub.
License
Copyright (c) Rich Soni. Distributed under the same terms as Vim itself.
See :help license.