From fe89b5671d65560b57d51485789c23c38885e28d Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Tue, 24 May 2016 14:14:54 +0200 Subject: major update: plugins, colorscheme, shortcuts, new git submodule! * using nelstroms mac color scheme * 'fixed' some keyboard shortcuts to behave more like in other editors * added some plugins --- doc/shortcuts.txt | 64 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 27 deletions(-) (limited to 'doc/shortcuts.txt') diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt index 9c168f9..4e49e6d 100644 --- a/doc/shortcuts.txt +++ b/doc/shortcuts.txt @@ -1,50 +1,60 @@ +leader key = usually set to backslash expects a quick command + + [normal mode] -f{char} - move cursor to the character {char} +f{char} = move cursor to the character {char} -[visual mode] - with selected lines -gq - formats text so that it fits in whatever :set textwidth was set -iB - select block between curly braces (:help object-select) +[visual mode] # with selected lines +gq = formats text so that it fits in whatever :set textwidth was set +iB = select block between curly braces (:help object-select) [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 +:Explore = cli version open file dialog [navigation] - - look up the 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 +gd = jump to the declaration of the variable 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 +[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 [marker] -ma - set marker a-z (a in this case) -'a - go to marker a +ma = set marker a-z (a in this case) +'a = go to marker a [hotkeys] -, - increment, decrement number under the cursor +, = increment, decrement number under the cursor [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) +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 -zR - opens all folds (unfold all) +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 +zR = opens all folds (unfold all) + +[vim modeline] +the last line can be a mode line, which holds settings like tab width: + +# vim: noai:ts=2:sw=2 filetype=dosini -- cgit v1.2.3