VI/VIM shortcuts


R    Overwrite text, press <Esc> to end
 :set nu    Display line numbers
G    Go to last line of the file
  
    :n   Go to line with this number (:10 goes to line 10)

%         Move to matching bracket:  ( { [ ] } )

/pattern/   forward to pattern

  /text   Search forward (down) for text (text can include spaces
                      and characters with special meanings.)
  
  ?text   Search backward (up) for text
  
  n       Repeat last search in the same direction
  
  N       Repeat last search in the opposite direction
 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s