| a | append mode |
| A | append to end of line |
| b | traverse word wise back |
| B | traverse word wise back |
| c | change followed by motion command |
| cw - change a word |
| 3cw - change 3 words right |
| c0 - that is c zero, change from current pos to begining of line |
| c$ - change from current pos to till end of line |
| ct - change till followed by char or pattern i.e motion forward dir. |
| cf - change till including followed forward dir. |
| cT - change till followed by char or pattern i.e motion backward dir. |
| cF - change till including followed backward dir. |
| cgg - change from cur.pos. to beg. of file |
| cG - change from cur.pos. to end of file |
| ciw - change a word, when you are in middle of word |
| caw - change a word including space after word |
| ci - could be quotes brackets or braces |
| C | Change till end of line ( = c$ ) |
| d | delete can be preceded count and followed by motion |
| dw - delete a word |
| 3dw - delete 3 words right |
| dd - delete entire line, can precede count, use p to paste same line |
| d0 - that is d zero, delete from current pos to begining of line |
| d$ - delete from current pos to till end of line |
| dt - delete till followed by char or pattern i.e motion forward dir. |
| df - delete till including followed forward dir. |
| dT - delete till followed by char or pattern i.e motion backward dir. |
| dF - delete till including followed backward dir. |
| dgg - delete from cur.pos. to beg. of file |
| dG - delete from cur.pos. to end of file |
| diw - delete a word, when you are in middle of word |
| daw - delete a word including space after word |
| dwwhp - swap words |
| ddp - swap lines |
| D | Delete till end of line ( = d$ ) |
| e | move to word wise, places cursor at end of each word |
| E | move to word wise, places cursor at end of each WORD |
| f | f is a motion char it should followed by a char To [count]'th occurrence of {char} to the right. The cursor is placed on {char} |
| F | F is a motion char it should followed by a char To [count]'th occurrence of {char} to the left. The cursor is placed on {char} |
| g | g is a motion command it should be followed by some chars |
| g~w - change case of a word |
| 10gg - to goto 10th line of file |
| gg - goto begining of file |
| gi - goto last insert position |
| gf - goto file on cursor pos. |
| gd - goto definition of cursor pos |
| G | goto end of file |
| h | move left one char <- |
| H | top of screen |
| i | insert mode |
| I | Insert mode , insert always starts at beginning of line |
| j | down one line |
| J | Join line |
| k | up one line |
| K | documentation for word under cursor |
| l | right one char -> |
| L | bottom of screen |
| m | set mark followed by register char ( a-z A-Z 0-9) |
| M | Middle of screen |
| n | next find |
| N | Prev find |
| o | insert blank next to current line |
| O | inserts blank above current line |
| p | paste |
| P | paste at cursor pos. |
| r | replace one char |
| 10r. - replaces 10 dots |
| R | Replace mode |
| s | substitute single char |
| S | substitue entire line |
| t | Till before [count]'th occurrence of {char} to the right. The cursor is placed on the character left of{char ; is used to find next, comma is used for finding prev occurrence of {char} |
| T | Till before [count]'th occurrence of {char} to the left. The cursor is placed on the character right of{char ; is used to find next, comma is used for finding prev occurrence of {char} |
| u | undo |
| U | Undo all changes on current line |
| v | linewise visual mode but from current pos |
| V | linewise visual mode |
| w | word wise , moves to beginning of word right |
| W | word wise , moves to beginning of word left |
| x | delete a char at current cur.pos |
| xp - swap next two characters around |
| X | delete previous char at current cur.pos |
| y | yank or copy |
| z | z with motion is used for folds |
| ~ | swap case |
| 0 | zero, begin of line |
| ^ | begin of line |
| $ | end of line |
| % | to match corresponding brackets,braces or curlies match brackets matchit.vim : % now matches tags <tr><td><script> etc |
| # | find and highlight all occurrences of current word backward |
| * | find and highlight all occurrences of current word forward |
| - | move prev. line |
| + | move next line |
| . | to repeat last insert |
| = | (re)indent the text on the current line or on the area selected (SUPER) |
| >> | shift line right, can preced count |
| >i} - shifts right whole content within curlies |
| >a} - shifts right whole content including curlies |
| << | shift line left |
| |
| |
| / | forward search pattern |
| ? | backward search pattern |
|
| guu | lowercase line |
| gUU | uppercase line |
| ~ | invert case (upper->lower; lower->upper) of current character |
| gf | open file name under cursor (SUPER) |
| ga | display hex, ascii value of character under cursor |
| g8 | display hex value of utf-8 character under cursor |
| ggg?G | rot13 whole file |
| xp | swap next two characters around |
| dwwhp | swap words |
| ddp | swap lines |
| CTRL-A,CTRL-X | increment, decrement next number on same line as the cursor |
| CTRL-R=5*5 | insert 25 into text |
| = | (re)indent the text on the current line or on the area selected (SUPER) |
| =% | (re)indent the current braces { ... } |
| G=gg | auto (re)indent entire document |
| !! | filter through shell command |
| 5!! - filter 5 lines though shell command equal to( :.,+4! ) |
| CTRL-e, CTRL -y | - in insert mode holding these key combinamtions copy contents from below, above lines. |
| * | g* g# : find word under cursor (forwards/backwards) |
| CTRL -N | : word completion in insert mode |
| CTRL -X CTRL -L | Line complete SUPER USEFUL |
| / CTRL -R CTRL -W | Pull onto search/command line |
| q: | to traverse ex mode history |
No comments:
Post a Comment