1. Installation:
sudo apt-get install vim
2. Configuration:
CD ~ #进入用户主目录
Touch. VIMRC #. suffix File not visible
Vi. VIMRC #打开文件
Input:
1 Setcindent2 3 SetShiftwidth=44 Settabstop=45 Setsofttabstop=46 7 Set Number8 SetHlsearch9 Syntax onTen One SetShowmode A SetFoldmethod=Syntax - SetRuler - the - - SetBackground=Dark - "ColorScheme Ron +ColorScheme Molokai
Explanations and higher-end configurations See: http://www.cnblogs.com/276815076/archive/2010/09/09/1822598.html
3, vim copy paste delete operation:
Vim to open the file.
V Select where the cursor is passing
V is selected in the behavior unit
Ctrl + V block operation
Y Copy selected Place
D Delete the selected place
X Delete the following characters
X Remove the preceding characters
d$ Delete all characters at the end of the row at the cursor location
GG moves to the beginning of the line
$ move to end of line
YY the line where the cursor is copied
U Undo Previous Action
CTRL + R Redo Previous action
P: Paste the contents of the Clipboard after the cursor
P (UPPERCASE): Pastes the contents of the Clipboard before the cursor
See: http://blog.csdn.net/tsuliuchao/article/details/8131537
Another here vim introduction very full: http://www.cnblogs.com/tzhangofseu/archive/2011/12/17/2290955.html
Vim installation, configuration and copy and paste operations