About Vim text editor :
Vim is initially as standard GUI text
editors like
Gedit or word processors like
OpenOffice.org's Writer, over
a longer term you can become more productive using Vim. If you're a
touch-typist, you'll find that your speed will improve even more with
Vim because your hands rarely need to leave the ^
home^ keys, and you'll
only need to use the mouse if you choose to do so.
If
you're a programmer or working with structured markup languages like
HTML, LaTeX, etc., Vim is the bee's knees. It offers a number
of features that make working with
programming and markup languages much easier.
Some of the useful VIM commands :
:e filename ---------------------------- OPen finename for edition
:w ---------------------------- Save file
:q ---------------------------- Exit Vim
:w! ---------------------------- Write fine and quit
/word ----------------------------- Search word from top to bottom
?word ----------------------------- Search word from bottom to top
Ctrl+a ---------------------------- Increment number under the cursor
Ctrl+x ---------------------------- Decrement number under cursor
Vu ----------------------------- Lowercase line
VU ------------------------------ Uppercase line
:e . ------------------------------ Open integrated file explorer
:Sex ------------------------------ Split window and open integrated file explorer
:browse e ------------------------------ Graphical file explorer
:ls ------------------------------- List buffers
:cd .. ------------------------------- Move to parent directory
:set autoindent -------------------------Turn on auto-indent
:args ------------------------------- List files
:tabnew ------------------------------- Creates a new tab
>> ------------------------------- Indent
<< ------------------------------- Un-indent
Happy coding..