"leader key let mapleader=' ' "normal keybinds "-------------{{{ "paste and search nnoremap :let @/ = "" nnoremap p :set invpaste "toggles nnoremap lb :call ToggleLineBreak() nnoremap wr :call ToggleWrap() nnoremap cc :call ToggleColorColumn() "dates nnoremap ts "=strftime("%F %T%z") nnoremap dt :r !date "rc files nnoremap rc :vsplit $MYVIMRC nnoremap so :source $MYVIMRC "formatting tools nnoremap =j :%!python -m json.tool "}}} "insert mode "-----------{{{ "abbrevations inoreabbrev #!! "#!/usr/bin/env" "}}} "plugin keybinds "{{{ "netrw nnoremap e :call ToggleNetrw() "openbrowser nmap gx (openbrowser-smart-search) vmap gx (openbrowser-smart-search) "ale nnoremap at :ALEToggle nmap af (ale_fix) nmap aK (ale_hover) nmap agd (ale_go_to_definition) nmap agd (ale_go_to_definition) "lsp function! s:on_lsp_buffer_enabled() abort setlocal omnifunc=lsp#complete setlocal signcolumn=yes if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif nmap gd (lsp-definition) nmap gr (lsp-references) nmap gi (lsp-implementation) nmap gt (lsp-type-definition) nmap rn (lsp-rename) nmap [g (lsp-previous-diagnostic) nmap ]g (lsp-next-diagnostic) nmap K (lsp-hover) nmap lf (lsp-document-format) nmap lst (lsp-status) endfunction "}}}