Posts

Showing posts with the label editors and file processing commands

Editors and file processing commands

Image
  Editors The most used editor is gvim. It works just like our word or notepad that we use in windows OS. Gvim creates a file if it doesn’t exist. It opens a file if it exists. Syntax: gvim filename In gvim we have 3 modes of operation: Command mode Insert mode Visual mode Command mode: This mode is main as most of the operations are done in this mode. By default the gvim opens in command mode but if one has to change to command mode from other mode we need to use “esc” key on the keyboard. Few commands used in gvim are: :w – to save :q – to quit :wq – to save and quit :q! – forceful quit , it does not save any changes done. :qa – quit all :wa – save all :vsp – split the gvim in vertical :sp – split the gvim in horizontal :u – undo /searchtext – to search text from top to bottom ?searchtext – to search text from bottom to top N : move to  highlighted text from bottom to top n : move to highlighted text from top to bottom o : insert line below the cursor O : insert line above ...