发现了一个很棒的vim配置方法,现在共享给大家。
https://github.com/kepbod/ivim
git clone git://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle
;git clone git://github.com/w0ng/vim-hybrid.git $HOME/.vim/bundle/vim-hybrid
;git clone git://github.com/kepbod/ivim.git $HOME/ivim
;ln -s $HOME/ivim/vimrc $HOME/.vimrc
;vim +BundleInstall! +BundleClean! +qa!
;via 'curl'
curl -L https://raw.github.com/kepbod/ivim/master/tools/bootstrap.sh | bash
via 'wget'
wget --no-check-certificate https://raw.github.com/kepbod/ivim/master/tools/bootstrap.sh -O - | bash
bash $HOME/ivim/tools/update.sh
If you confront errors when you update vim plugins, please run command below.
bash $HOME/ivim/tools/restore.sh
Vim
Git
Ctags
To use this distribution with less bugs, please get more suggestions from here
Beautiful
Use lots of famous colorschemes to make your eyes feel comfortable in both Vim and MacVim/gVim.
Efficient
This distribution is completely customisable using a ~/.vimrc.local
, ~/.gvimrc.local
and ~/.vimrc.bundles.local
!
Each plugin has its unique requirements and configurations, so if you have any questions with them, please check help files of them first!
Learning Vim
A good learning method of Vim is vimtutor, a 30 minute tutorial that teaches the most basic Vim functionality hands-on.
To try it, just type vimtutor
on terminal.
Another way to get familiar with Vim commands and settings is just rely on the strong help system of Vim.
It's easy and convenient to type :h
or :help
in Vim for help of whatever you want to know.
A beautiful Vim cheat sheet is available here. If you want one, just click it!
Key Mappings
Because I have set some key mappings for more convenient typing and checking, you may feel inconvenient with them at start. But if you get familiar with them, I'm sure you will love them.
You can just type :map
in Vim to see them.
More Tips
Hope You Enjoy Vimming
This distribution refers to many other famous Vim configurations (mainly contain spf13-vim, Champions' Configuration and Steve's Configuration), so there may be some unavoidable errors in it, but I'll try my best to make it work well. If you have any questions, please feel free to post your issues and suggestions! Thanks!
ivim - The Vim Distribution of Xiao-Ou Zhang
Copyright (C) 2013 Xiao-Ou Zhang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.