"===========================" " Keyboard Configuration: " "===========================" " " Reference: (view plugin documentation for the full list of commands each offers) " , | (A) -> follows an emme term to expand it (ie: 'html:5') " | (N) -> toggle hexhighlight's hexcode to colours in :gui " cs'" | (N) -> change surrounding '' to "" (any delimiters work) " cs" | (N) -> change surrounding "" to the tag: " cst" | (N) -> change any surrounding tag to "" " ds" | (N) -> delete surrounding "" " " Mappings: " | (A) -> go to the next open tab "

| (A) -> go to the previous open tab " | (V) -> indent a block in visual mode " | (V) -> unindent a block in visual mod " | (N) -> toggle the nerdtree sidebar " | (N) -> toggle the tagbar sidebar " | (A) -> toggle row/column highlighting " | (A) -> toggle line numbers " | (N) -> toggle line wrapping " | (A) -> toggle visible trailing whitespace " | (A) -> toggle collapsed/folded rows " | (N) -> format document and return to current line " | (N) -> remove whitespace " | (N) -> paste and replace the current word " | (V) -> paste and replace the selection " | (A) -> move up a chunk of text " | (A) -> move down a chunk of text " | (N) -> move to the start of the text " | (N) -> move to the end of the line " " (neocomplcache) " | (I) -> write the part common to all suggestions " | (I) -> cancle the match dialog (during suggestion) " | (N) -> undo the most recent match selection " " GVim Mappings: " | (A) -> toggle the menu " | (A) -> toggle the toolbar " | (A) -> toggle the scrollbar " " Aliases: " :wsudo | (N) -> :SudoWrite (write the file as root using sudo) " :esudo | (N) -> :SudoRead (read a file as root using sudo) " " Notes: " *by the default key is: \ " "MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{ "tab and untabbing selected blocks vmap >gv vmap n ':tabn' nnoremap p ':tabp' "toggle the cursor line and column nnoremap ':set cursorline! cursorcolumn!' "toggle the display of line numbers nnoremap ':set number!' "toggle line wrapping (and bottom bar if using the gui) if !has("gui_running") nnoremap ':set wrap!' else nnoremap ':set wrap! go'.'-+'[&wrap]."=b\r" endif "toggle the display of whitespace nnoremap ':set list!' "toggle folded code at foldpoints inoremap za nnoremap za onoremap za vnoremap zf "format document then return to current line nnoremap mzgg=G`z "remove trailing white space nnoremap ':FixWhitespace' "map shift to enable middle-click paste while being held map map! "map shift-p to paste and replace the current word or selection nnoremap "_diwP vnoremap "_d"0P "map ctrl-up/down to moving up/down by a block of text map map "map shift-left/right to move to the start/end of the line's text nmap ^ nmap $ "}}} "PLUGIN KEYBINDINGS {{{ "toggle the nerd tree sidebar nnoremap ':NERDTree' "toggle the tagbar sidebar nnoremap ':TagbarToggle' "neocomplcache suggestions: cancel, autocomplete, scroll up and scroll down inoremap pumvisible() ? neocomplcache#complete_common_string() : "\" inoremap pumvisible() ? neocomplcache#close_popup() : "\" inoremap neocomplcache#undo_completion() "emmet switch triggerkey from to let g:user_emmet_leader_key='' "}}} "TMUX AND SCREEN COMPATIBILITY: SOME HACKS TO MAKE THINGS WORK RIGHT {{{ if $TERM =~ '^screen-256color' nmap OH imap OH nmap OF imap OF endif "}}} "GVIM: MAPPINGS FOR GUI ELEMENTS {{{ "map toggles for the menu, toolbar and scrollbar noremap ":if &go=~#'m'set go-=melseset go+=mendif" noremap ":if &go=~#'T'set go-=Telseset go+=Tendif" noremap ":if &go=~#'r'set go-=relseset go+=rendif" "}}} "ALIASES: COMMAND SHORTCUTS {{{ cabbrev wsudo SudoWrite cabbrev esudo SudoRead "}}}