From 81571661d0c39e7261d1a55ff641e56970defff0 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 13 Sep 2015 21:54:53 +0200 Subject: vimdiff shortcuts added and support for CTRL+Shift+LeftArrow... --- doc/shortcuts.txt | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'doc/shortcuts.txt') diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt index 9f4325f..3b714bc 100644 --- a/doc/shortcuts.txt +++ b/doc/shortcuts.txt @@ -1,13 +1,35 @@ - [visual mode] - with selected lines -gq - format text so that it fits in whatever :set textwidth was set +gq - formats text so that it fits in whatever :set textwidth was set + [commands] -:spell [word] - adds a word to the current dictionary (no mistake any more) -:set list - display non printable characters -:retab - replaces tabs with spaces -:set expandtab - in insert mode: replace tab with spaces +:spell [word] - adds a word to the current dictionary (no mistake any more) +:set list - display non printable characters +:retab - replaces tabs with spaces +:set expandtab - in insert mode: replace tab with spaces + [navigation] - - go to tag under the cursor (help links as well) - - return back from tag under the cursor + - look up the tag under the cursor (help links as well) + - return back from tag under the cursor + + +[macros] - record and play back a series of vim commands +qa - start (q) macro recording in register a (can be anything) +q - stop macro recording +@a - replay macro a +:'<,'>normal @a - apply a to every line in the current selection + + +[windows] +v - splits buffer vertically (screen uses |) +s - splits buffer horizontally (same as screen) +w - moves the cursor to the next window and back +[dir] - moves the cursor in that direction (use hjkl or arrow keys) + + +[vimdiff] +do - get changes from other window into the current +dp - put changes from current window into the other +]c - jump to the next change +[c - jump to the prevous change -- cgit v1.2.3