This Blog of mine talks about few of the technical aspects that i have got my hands on. It is just the begning and i hope to input a lot more information for which the quest has already begun. Also would be delighted if my viewers can printf their # comments and of course relavent information.

$ end of line^ beginning of line/ search:%s/.$// remove last character on every line

INSERT MODE

a append after cursorA append at end of linei insert before cursorI insert at start of lineopen a line below cursoropen a line above cursorcw change word at cursorc#w change # of wordsC change text to end of liner replace a characterR replace text unti #a add # copies of text#a add # copies of text at line end#i insert # copies of text#I insert # copies of text at line start^w erase last wordgo to command mode

COMMAND MODE

h move cursor leftl move cursor rightj move cursor down one linek move cursor up one lineG go to end of file#G go to line #H go to top of screenM go to middle of screenL go to bottom of screenw move cursor forward one wordb move cursor back one word#w move cursor forward # words#b move cursor back # wordsF scroll forward one pageB scroll back one pagex delete characterdd delete line#dd delete # linesdw delete word#dw delete # wordsd$ delete to end of lineP paste before cursorp paste after cursor"vp paste buffer v after cursorxp transpose two charactersY yank a line#Y yank # lines"v#Y yank # lines to buffer v. repeat last commandG show which line onu undo

CHANGE A VALUE THROUGHT A FILE:g/$oldpattern/s//$newpattern/g

this was for changing DNS values in the db.* files

:g/SOA/s/$oldpattern/$newpattern/g

The 'g' at the beginning and end of the command indicate that the changes are to occur horizontally and vertically