" Disable left, right, up and down keys " In normal mode... nnoremap :echoe "Use h" nnoremap :echoe "Use l" nnoremap :echoe "Use k" nnoremap :echoe "Use j" " ...and in insert mode inoremap :echoe "Use h" inoremap :echoe "Use l" inoremap :echoe "Use k" inoremap :echoe "Use j" " Unbind some useless/annoying default key bindings. nmap Q " Center the cursor when moving through document nnoremap zz nnoremap zz nnoremap g; g;zz nnoremap g, g,zz nnoremap zz nnoremap zz nnoremap ]s ]szz nnoremap n nzzzv nnoremap N Nzzzv " Better window/split navigation map j map k map h map l " Clear searches nnoremap / :call clearmatches():noh " Make space-bar the leader-key let mapleader = " " " Map easymotion Plugin to j map j (easymotion-s) " Map nerdtree to e " Changes the pwd and opens the VCS root nnoremap e :lcd %:h :NERDTreeToggleVCS let g:NERDTreeShowHidden = 1 let g:NERDTreeWinSize = 20 " Changes the pwd to the opened file's directory nnoremap cd :lcd %:h