|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
Change case of character under cursor: ~ Change case of all characters on line: g~~ Change case of remaining word from cursor: g~w Increment the number under the cursor: Decrement the number under the cursor: redraw: Turn on line numbering: :set nu Turn it off: :set nonu Number lines (filter the file through a unix command and replace with output): :%!cat -n Sort lines: :%!sort Sort and uniq: :%!sort -u Read output of command into buffer: :r !ls -l Refresh file from version on disk: :e! Open a new window: n Open a new window with the same file (split): s Split window vertically: v Close current window: c :q Make current window the only window: o Cycle to next window: w Move to window below current window: j Move to window above current window: k Move to window left of current window: h Move to window right of current window: l Set textwidth for automatic line-wrapping as you type: :set textwidth=80 |

