Vim Bootstrap is generator provides a simple method of generating a .vimrc configuration for vim, NeoVim, MacVim and GVim.
The distribution is designed to work with Vim >= 7.3.
$ brew install git ctags
- Ubuntu
$ sudo apt-get install git exuberant-ctags ncurses-term
- pyflakes (optionally for python bundles)
$ pip install flake8
Commands | Descriptions |
---|---|
:cd <path> |
Open path /path |
<Control+w>+arrows |
Navigate via split panels |
<Control>+w+w |
Alternative navigate vim split panels |
,. |
Set path working directory |
,w or ,x |
Next buffer navigate |
,q or ,z |
previous buffer navigate |
SHIFT+t |
Create a tab |
TAB |
next tab navigate |
SHIFT+TAB |
previous tab navigate |
,e |
Find and open files |
,b |
Find file on buffer (open file) |
,c |
Close active buffer (clone file) |
F2 |
Open tree navigate in actual opened file |
F3 |
Open/Close tree navigate files |
F4 |
List all class and method, support for python, go, lua, ruby and php |
,v |
Split vertical |
,h |
Split horizontal |
,f |
Search in the project |
,o |
Open github file/line (website), if used git in github |
,sh |
Open shell terminal inside Vim |
,ga |
Execute git add on current file |
,gc |
git commit (splits window to write commit message) |
,gsh |
git push |
,gll |
git pull |
,gs |
git status |
,gb |
git blame |
,gd |
git diff |
,gr |
git remove |
> |
indent to right |
< |
indent to left |
gc |
Comment or uncomment lines that {motion} moves over |
YY |
Copy to clipboard |
P |
Paste |
<Control+y>, |
Activate Emmet plugin |
Commands | Descriptions |
---|---|
SHIFT+k |
Open documentation |
Control+Space |
Autocomplete |
,d |
Go to the Class/Method definition |
,r |
Rename object definition |
,n |
Show where command is usage |
- Download your own vimrc file at http://www.vim-bootstrap.com
- Put your vimrc file (or nvimrc if you use NeoVim) into home folder
mv ~/Downloads/vimrc ~/.vimrc
- Execute ViM and it will install plugins automatically
vim +NeoBundleInstall +qall
:VimBootstrapUpdate (thanks to @sherzberg)
:NeoBundleUpdate
Visit the following sites to learn more about Vim: