"============== " Key Bindings "============== " Leader key let mapleader = ' ' "~~~~~ " Git "~~~~~ " Show git commit list map gv :GV " Show status nnoremap gs :Git " Pull nnoremap gpu :Gpull "~~~~~~~~~~~~~~~~~ " File Management "~~~~~~~~~~~~~~~~~ " fzf nmap f :Files nmap fg :GFiles " vifm nmap r :Vifm " NERDTree map n :NERDTreeToggle "~~~~~~~~~ " Linters "~~~~~~~~~ " Deletes all trailing whitespaces noremap c :%s/\s\+$//e " Enable/disable deoplete map d :call deoplete#toggle() " ALE map fw :FixWhitespace map af :ALEFix map an :ALENext map aN :ALEPrevious map ad :ALEDetail map ag :ALEGoToDefinitionInSplit map aG :ALEGoToDefinition " LSP " nnoremap :LspNextDiagnostic " nnoremap :LspPreviousDiagnostic " Spell-check (English US and Polish) map :setlocal spell! spelllang=en_us map :setlocal spell! spelllang=pl "~~~~~~~~~~~~~~~~~~ " Window Managment "~~~~~~~~~~~~~~~~~~ " Tab Managment map :tabnew map :tabclose nnoremap gt nnoremap gT " Split Managment nnoremap nnoremap nnoremap nnoremap " Open terminal noremap :split term://zsh:resize 10 " Exit from terminal mode tnoremap "~~~~~~~ " Other "~~~~~~~ " Sudo read-only file cnoremap sudow w !sudo tee % >/dev/null " Disable hlsearch map :noh " Go to last change map l :'. map j gj map k gk " SuperTab let g:SuperTabMappingTabLiteral = '' let g:SuperTabDefaultCompletionType = 'context' let g:SuperTabContextDefaultCompletionType = ''