"################################################################################### " __ ___ _ " / |/ /____ _ ____ ____ (_)____ ____ _ _____ " / /|_/ // __ `// __ \ / __ \ / // __ \ / __ `// ___/ " / / / // /_/ // /_/ // /_/ // // / / // /_/ /(__ ) " /_/ /_/ \__,_// .___// .___//_//_/ /_/ \__, //____/ " /_/ /_/ /____/ " "################################################################################### "*********************************************************************************** " Main Vim Keybinds "*********************************************************************************** " Set leader to space bar let mapleader = " " let maplocalleader = " " " Window Navigation " Navigate to left window. nnoremap h " Navigate to down window. nnoremap j " Navigate to top window. nnoremap k " Navigate to right window. nnoremap l " Horizontal split then move to bottom window. nnoremap - s " Vertical split then move to right window. nnoremap \| vl " Cycle tabs with Tab and Shift+Tab nnoremap :bnext nnoremap :bprevious " Kill buffer with Space+bk nnoremap bk :bdelete "Faster ESC. inoremap jk inoremap kj " Indent controls " Reselect text ater indent/unindent. vnoremap < >gv " Tab to indent in visual mode. vnoremap >gv " Shift+Tab to unindent in visual mode. vnoremap Al :left nnoremap Ac :center nnoremap Ar :right vnoremap Al :left vnoremap Ac :center vnoremap Ar :right "*********************************************************************************** " Plugin specific keybinds "*********************************************************************************** " Git status nnoremap gs :Gstatus " Git diff in split window nnoremap gd :Gdiffsplit " Git commit nnoremap gc :Gcommit " Git push nnoremap gP :Gpush " Git pull nnoremap gp :Gpull " Git move nnoremap gm :Gmove " Git merge nnoremap gM :Gmerge " browse current file on web nnoremap gb :Gbrowse " browse current line on web nnoremap gbl :CocCommand git.browserOpen " View chunk information in preview window. nnoremap gh :CocCommand git.chunkInfo " View commit information in preview window. nnoremap gsc :CocCommand git.showCommit " Toggle git gutter sign columns nnoremap gg :CocCommand git.toggleGutters " NERD Commenter " Toggle comments in visual or normal mode nnoremap n :call NERDComment(0,"toggle") vnoremap n :call NERDComment(1,"toggle") " Toggle a sexy comment nnoremap ns :call NERDComment(0,"sexy") vnoremap ns :call NERDComment(1,"sexy") " append a comment nnoremap na :call NERDComment(0,"append") vnoremap na :call NERDComment(1,"append") " uncomment section nnoremap nu :call NERDComment(0,"uncomment") vnoremap nu :call NERDComment(1,"uncomment") " invert comments nnoremap ni :call NERDComment(0,"invert") vnoremap ni :call NERDComment(1,"invert") " comment section nnoremap nc :call NERDComment(0,"comment") vnoremap nc :call NERDComment(1,"comment") " " Fuzzy Finding " fuzzy find files nnoremap ff :Files " fuzzy find tags nnoremap ft :Vista finder ctags