" g Leader key let mapleader="," let localleader=",," nnoremap map v :edit $MYVIMRC " Better indenting vnoremap < >gv " Better nav for omnicomplete inoremap ("\") inoremap ("\") " TAB in general mode will move to text buffer nnoremap :bnext " SHIFT-TAB will go back nnoremap :bprevious " Use control-c instead of escape nnoremap " : completion. inoremap pumvisible() ? "\" : "\" " Better window navigation nnoremap h nnoremap j nnoremap k nnoremap l " Use alt + hjkl to resize windows nnoremap :resize -2 nnoremap :resize +2 nnoremap :vertical resize -2 nnoremap :vertical resize +2 " Copy selected text to system clipboard (requires gvim/nvim/vim-x11 installed): vnoremap "+y map "+P " Binary File Settings ---- {{{ " " Hex read nmap hr :%!xxd :set filetype=xxd " Hex write nmap hw :%!xxd -r :set binary :set filetype=xxd " " }}} " Info Pages Settings ----- {{{ " " Set up the reading of info from within vim (use :Info whatever) nnoremap :exe ":Info ".expand("") " " }}} " Terminal Emulator ----- {{{ " " tnoremap " Usel alt+hjkl to move between windows tnoremap h tnoremap j tnoremap k tnoremap l nnoremap h nnoremap j nnoremap k nnoremap l " " }}}