Archive for 'Vi-Editor'

Linux VI/VIM Editor

Since the 70’s, Vi is one of the programmer’s best friend. Nevermind you’re new to Vi or not, here’s a big list of more than 100 useful commands, organized by topic, which will make your coder life better :

Search

/word Search “word” from top to bottom
?word Search “word” from bottom to top
/jo[ha]n Search “john” or “joan”
/\<>

Read the complete article »

VIM setting with “set”

VIM Settings:

Note: Options given are default. To change them, enter type :set option to turn them on or :set nooptioni to turn them off.To make them execute every time you open VI, create a file in your HOME directory called .exrc and type the options without the colon (:) preceding the option

:set ai Turns on auto indentation
:set …

Read the complete article »