Thursday, October 8, 2015


Vim is a text editor that is upwards compatible to Vi.  It can be used to edit all kinds of plain text.  It is especially useful for editing programs.

"vi" to edit the file

"i" for insert mode

"esc" for back to normal mode

":q!" for quit the file with out saving the edited data

"shift+g" to go last line

"shift+a" to go to end of the line

"dd" to delete the entire line

"u" for undo

"yy/cursor right click" for paste

"left click on content" for copy

":wq!" for save and quit the file

" :set number " to set up the serial number for lines "

" :set nonu " to remove the serial number"

"o" to go fresh down line with insert mode

"O" to go fresh up line with insert mode

"j" down arrow

"l" right arrow

"h" left arrow

"k" up arrow

No comments:

Post a Comment