diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 2197b41..6289188 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -32,7 +32,7 @@ " S | (V) -> surround selection " ds" | (N) -> delete surrounding "" " dst | (N) -> delete surrounding tag (ie: ) -" cs'" | (N) -> change surrounding '' to "" (any delimiters work) +" cs'" | (N) -> change surrounding '' to "" (any delimiters) " cs" | (N) -> change surrounding "" to the tag: " cst" | (N) -> change any surrounding tag to "" " ysiw' | (N) -> surround the current word with '' @@ -50,11 +50,11 @@ " | (A) -> select the line being clicked " | (A) -> select the paragraph being clicked " -" | (A) -> copy selection or character under the cursor -" | (A) -> copy selection or character under the cursor +" | (A) -> copy selection or character under cursor +" | (A) -> copy selection or character under cursor " -" | (A) -> cut selection or character under the cursor -" | (A) -> cut selection or character under the cursor +" | (A) -> cut selection or character under cursor +" | (A) -> cut selection or character under cursor " " | (A) -> paste at the cursor (not mouse) " | (A) -> paste at the cursor (not mouse) @@ -71,13 +71,17 @@ " (display) " | (N) -> reset window and clear search " // | (N) -> reset window and clear search +" n | (N) -> center vertically on next search term +" N | (N) -> center vertically on last search term +" * | (N) -> center vertically on nth next search term +" # | (N) -> center vertically on nth last search term " " (toggles and features) " ~ | (N) -> popup a command reference " , | (N) -> display tag information in echo area " | (N) -> toggle the vim reference manual " ? | (N) -> toggle the vim reference manual -" ` | (A) -> toggle the gutter(line numbers, folds and signify) +" ` | (A) -> toggle the gutter(numbers+folds+signify) " " | (N) -> toggle selected fold " = | (N) -> open all folds @@ -127,11 +131,11 @@ " x | (V) -> delete the currently selected text " X | (N) -> delete the char(s) before the cursor " X | (V) -> delete the currently selected lines -" D | (N) -> delete chars under and after the cursor on the line +" D | (N) -> delete from the cursor to EOL " D | (V) -> delete the currently selected lines -" dw | (N) -> delete chars under and after the cursor in the word -" dd | (N) -> delete lines under and after the one below -" d | (V) -> delete the currently selected text +" dw | (N) -> delete from the cursor to end of the word +" dd | (N) -> delete current line +" d | (V) -> delete selected text " " (improved copy and paste shortcuts) " | (N) -> paste from buffer @@ -396,6 +400,12 @@ "clear search and reset buffer nnoremap ':noh:redraw!' nnoremap // ':noh:redraw!' + + "keep the currently highlighted term in a search vertically centered + nnoremap n nzz + nnoremap N Nzz + nnoremap * *zz + nnoremap # #zz "} "TOGGLES AND FEATURES:{