Vim Command | Example | Description |
/[pattern] | /gdb_disassembly | It will find gdb_disassembly in the file and you can move to next instance using n |
n | n | Move next instance of matched pattern |
yy | yy | Copy the current line |
[n]yy | 3yy | Copy 3 lines including current one |
p | p | Paste copied line |
dd | dd | Cut the current line |
:w | :w | Write/save the current file |
:wq | :wq | Write/save and quit |
:q | :q | Quit |
:q! | :q! | Quit without saving |
u | u | Undo last action |
U | U | Undo all latest changes to current line |
Ctrl+r | Ctrl+r | Redo |
:n | :42 | Go to line number 42 |
Monday, April 11, 2011
Basic Vim Commands
Labels:
Technical
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment