Ⅰ. 插件描述
my general vim mappingsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'chilicuil/my-mappings-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'chilicuil/my-mappings-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'chilicuil/my-mappings-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/chilicuil/my-mappings.vim
Ⅳ. 文档说明
my-mappings.vim is a global plugin who set mappings according to they way I use vim. It sets highly opinionated settings. Probably not something you would like to use straight ahead. Some of the features are:
Ctrl-[hjkl]to move between panes,as map leader<backspace>for deleting visual selections- make
Yconsistent withDandC SSto use sudo on current file to force overwrite- avoid common mistakes, Q,W,QW, wq, etc.
- etc.
Requirements
- Vim 7.0+
Installation
Vundle way (recommended), add the following to your $HOME/.vimrc file:
Bundle 'javier-lopez/my-mappings.vim'
And run inside of vim::BundleInstall
- Pathogen way:
$ git clone https://github.com/javier-lopez/my-mappings.vim.git ~/.vim/bundle/my-mappings.vim
Manual (simplest if you've never heard of vundle or pathogen), download the zip file generated from github and extract it to $HOME/.vim
mv my-mappings.vim*.zip $HOME/.vim
cd $HOME/.vim && unzip my-mappings.vim*.zipUpdate the help tags from vim::helpt ~/.vim/doc/