| esc :q! | Just quit - don't save | 
| esc :e! | Revert to saved | 
| esc :wq | Save and exit | 
| esc shift zz | Save and exit | 
| esc i | Enter insert mode (edit mode) | 
| esc a | Enter append mode (edit mode) | 
| esc | Exit edit mode | 
| esc r | Replace a single character | 
| esc x | Delete a single character | 
| esc dd | Delete a single line | 
| esc yy | Copy a single line | 
| esc p | Paste a single line | 
| . | Repeat the last command | 
| esc / | String search | 
| esc $ | Jump to end of line | 
| esc ^ | Jump to begining of line | 
| shift g | Jump to the end of the file | 
| :1 | Jump to the begining of the file | 
| :.= | Display the current line number | 
Monday, August 16, 2010
Vi quick reference for DBAs
 Here are a few useful commands for those who are new to vi.
 
  
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment