Default Usage
There is lots of tutorial on the Internet.
You can google or use the $ vimtutor to learn how to use basic.
http://www.openvim.com/
http://vim-adventures.com/
Tips
Search what you select- visual mode select word or sentance (v + hjklew.. and y for yank)
/^r"
Done
text object: w,s,p,t
motions: a,i,t,f,F
command: d,c,y,v
Combine: diw, ciw etc…
查詢所有key map
vim原生:help index
查詢pluginmap:verbose map :verbose map!
:help map-listing
:help :map-verbose
:help :verbose
:help :verbose-cmd
:help map-which-keys
vimrc
The configuration of vim
Here is my vim configuration on the github.
Basic configuration: vimrc
Plugin configuration: vimrc.bundle
Vundle
Vundle is a Vim plugin manager.
Installation1
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Add in .vimrc
1 | set nocompatible " be iMproved, required |
And reopen vim, try the command :BundleList to check the plugin you install now
Other command1
2
3
4
5
6$ BundleInstall
$ BundleSearch
$ BundleList
$ BundleUpdate
$ BundleClean
$ BundleDocs
