Yalo
    e-mail
    internet accelerators
    internet access
    internet and phone call
    web hosting
    storage space
    url redirection
    internet call waiting
    free sms
    nota bene
 
 

A selection of VI commands

Move commands

  1G   Move cursor to the first caracter of file
   G   Move cursor to the beginning of the last line of file
   
   0   Move cursor to the beginning of line
   $   Move cursor to the end of line

   b   Move cursor to the beginning of current word or to the beginning of previous word
  2b   Move cursor back to 2'd beginning of a word counting from current position
   w   Move cursor to the beginning of the next word
  3w   Move cursor forward to the beginning of the 3'd word counting from the next word

Marking Commands

  mt   Mark current line with caracter t
  't   Go to line marked with caracter t
 y't   Copy to buffer (yank) from current line to line marked with caracter t
 d't   Delete from current line to line marked with caracter t

Delete Commands

   x   Delete current caracter
  7x   Delete 7 caracters forward beginning with current caracter

  dw   Delete until next word encountered
 3dw   Delete forward until 3'd word encountered beginning from the next word
  d0   Delete line from it's beginning to the current caracter
  d$   Delete current line beginning with the current caracter until the end of it
   D   Same action as d$
  dd   Delete current line
 5dd   Delete 5 line forward beginning with current line

 d't   Delete text beginning with the current line and until the line marked with caracter t
 
 d1G   Delete text from beginning until the current line
  dG   Delete text beginning with current line until the end of file

       All delete commands put deleted text in the buffer
       Last deleted text can be retrieved from buffer and put in some place with paste command 'p'

Copy and paste commands

 5yy   Copy five lines forward beginning with current line to buffer 
  yy   Copy current line to buffer
   
   p   Paste buffer content (last deleted text) under cursor

Other commands

   ~   Change letter capitalization
   .   Repete last command
   u   Undo last command
   `   Change from edit mode to command mode
   i   Change from command mode to edit mode
   a   Change from command mode to edit mode and put cursor after current character
  :w   Write text to opened file
  :wNew  Write text to file named New

Search commands

 /red  Find word red searching forward from current cursor position 
 ?Str  Find sequence Str searching backward

Replace commands

   rK   Replace current character with letter K
  :%s/old/new/g  Replace all instances of the word old with word new 
  :%s/old/new/gc  Replace all instances of the word old with word new, ask for confirmation on every replacement