"===========================" " " " Keyboard Configuration: " " " " Maintainer: Prurigro " " License: MIT " " " "===========================" " " Note: " *The default key is: \ " " Reference: (view plugin documentation for the full list of commands each offers) " q | (N) -> toggle display of the quickfix list " l | (N) -> toggle display of the location list " ds" | (N) -> delete surrounding "" " cs'" | (N) -> change surrounding '' to "" (any delimiters work) " cs" | (N) -> change surrounding "" to the tag: " cst" | (N) -> change any surrounding tag to "" " " Mappings: " (mouse) " | (A) -> scroll right " | (A) -> scroll left " | (A) -> unbind this from vim so xorg can paste " " (tabs) " | (A) -> go to the next open tab " | (A) -> go to the previous open tab " | (A) -> open a new tab " ` | (N) -> create a new tab with vimfiler " " (toggles) " `` | (N) -> toggle the vimfiler sidebar on the left " ~~ | (N) -> toggle the vimfiler sidebar on the right " | (N) -> toggle folds " | (A) -> toggle line numbers " | (A) -> toggle row/column cursor highlighting " | (A) -> toggle line wrapping " | (A) -> toggle all folds " | (A) -> toggle spell check " | (A) -> toggle syntax checking " | (A) -> enable spellcheck + toggle list of spelling errors " | (A) -> toggle the gundo undo history sidebar " | (A) -> toggle the tagbar sidebar " | (A) -> toggle the location/error list " " (gvim toggles) " | (A) -> toggle the menu " | (A) -> toggle the toolbar " | (A) -> toggle the scrollbar " " (completion) " ,, | (A) -> enter after emme 'word' (ie: html:5) " \\ | (N) -> show spelling suggestions popup for word " \| | (N) -> add word to a local list of correct spellings " | (I) -> (neocomp) autocomplete using common string " | (I) -> (neocomp) autocomplete the common string " | (I) -> (neocomp) close the suggestion popup " | (I) -> (neocomp) undo the most recent completion " " (formatting) " | (V) -> deletes currently selected text " | (N) -> deletes the character behind the cursor " | (N) -> format document and return to current line " | (N) -> remove whitespace " | (N) -> convert tabs into spaces " \ | (N) -> remove search highlighting " | (N) -> an alt mapping to remove search highlighting " | (V) -> indent all the lines currently selected " | (N) -> indent the current line " | (V) -> unindent all the lines currently selected " | (N) -> unindent the current line " " (movement) " = | (N) -> move to the first character on the next line " | (N) -> move to the beginning of the document " | (N) -> move to the end of the document " | (N) -> move to the end of the line " | (N) -> move to the beginning of the non-whitespace " " | (N) -> move a few lines up " | (N) -> move a few lines down " | (N) -> move a few lines right " | (N) -> move a few lines left " " (selection) " | (N) -> select all text " a | (N) -> select all text " | (V) -> select all text " a | (V) -> select all text " " | (V) -> select all text above " | (V) -> select all text below " | (V) -> select all text to the right " | (V) -> select all text to the left up to the indent " " | (V) -> select a few lines up " | (V) -> select a few lines down " | (V) -> select a few lines right " | (V) -> select a few lines left " " (vimdiff) " > | (N) -> update differences " < | (N) -> an alt mapping to update differences " >> | (N) -> next difference " << | (N) -> previous difference " >< | (N) -> replace diff in current pane with other pane " <> | (N) -> replace diff in other pane with current pane " " (paste functions) " p | (N) -> view the paste buffers and register contents " p | (N) -> paste in the direction entered " y | (N) -> copies the character at the cursor " P | (V) -> save selection to the buffer and paste over " p | (V) -> preserve the buffer pasting over selected text " " (delete/cut functions) " d | (V) -> delete the currently selected text " x | (V) -> delete the currently selected text " x | (N) -> delete the char(s) under and the cursor " X | (V) -> delete the currently selected lines " X | (N) -> delete the char(s) before the cursor " D | (V) -> delete the currently selected lines " D | (N) -> delete chars under and after the cursor on the line " dw | (N) -> delete chars under and after the cursor in the word " dd | (N) -> delete lines under and after the one below " " Aliases: " :wsudo -and- :sudow | (C) -> :SudoWrite (write the file as root using sudo) " :esudo -and- :sudoe | (C) -> :SudoRead (read a file as root using sudo) " "MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{ "MOUSE:{ "hold shift to enable middle-click paste noremap noremap! "hold ctrl to scroll left/right instead of up/down noremap 3zl noremap 3zh inoremap 3zl inoremap 3zh "} "TABS:{ nnoremap ':tabnext' nnoremap ':tabprev' nnoremap ':tabnew' nnoremap ` ':VimFiler -tab -project' "} "TOGGLES:{ "bindings to trigger vimfiler nnoremap `` ':VimFilerExplorer -direction=topleft -winwidth=45' nnoremap ~~ ':VimFilerExplorer -direction=botright -winwidth=45' "toggle folded code at foldpoints nnoremap za "unmap F1 from help then map it to toggle the display of line numbers nnoremap ':set number!:echo "Line numbers toggled"' xnoremap ':set number!v' inoremap ':set number!' "toggle the cursor line and column nnoremap ':set cursorline! cursorcolumn!:echo "Cursor crosshair toggled"' xnoremap ':set cursorline! cursorcolumn!v' inoremap ':set cursorline! cursorcolumn!' "toggle line wrapping (and bottom bar if using the gui) nnoremap ':echo "Line wrapping toggled":set wrap!' xnoremap ':set wrap!v' inoremap ':set wrap!' "toggle all folds nnoremap zi:echo "Code Folding Toggled" xnoremap ziv inoremap zi "toggle spellcheck nnoremap ':set spell!:echo "Spell checking toggled"' xnoremap ':set spell!v' inoremap ':set spell!' "toggle syntax checking nnoremap ':SyntasticToggleMode' xnoremap ':SyntasticToggleModev' inoremap ':SyntasticToggleMode' "bindings to trigger spellcheck nnoremap ':UpdateAndSpellCheck:call ToggleQuickfixList()' xnoremap ':UpdateAndSpellCheck:call ToggleQuickfixList()' inoremap ':UpdateAndSpellCheck:call ToggleQuickfixList()' "bindings to trigger the gundo undo history nnoremap ':GundoToggle:echo "Undo history sidebar toggled"' xnoremap ':GundoTogglev' inoremap ':GundoToggle' "bindings to trigger the tagbar list of tags nnoremap ':TagbarToggle:echo "Code tagbar toggled"' xnoremap ':TagbarTogglev' inoremap ':TagbarToggle' "bindings to trigger the tagbar list of errors nmap