" Custom keymappings " Toggle through open buffers via F8 noremap :bnext noremap :bprevious " Define a shortcut to toggle the Neotree map :NeoTreeShowToggle " Copy to clipboard with Ctrl+C when in visual mode vnoremap "+y " Copy to clipboard with Ctrl+C when in normal mode noremap "+y " Paste from clipboard with Ctrl+V when in insert or command mode map! "+p " Open the terminal in a separate window noremap :belowright split +resize12 term://zsh " Delete the current buffer without closing the window in normal mode noremap :bnext :bd# " Map ale wraps to control+k and control+j nmap (LspPreviousDiagnostic) nmap (LspNextDiagnostic) " Map vim-grammarous to nmap :GrammarousCheck " Map the esc key to close a terminal tnoremap :bd! " Map a key to toggle vim-pencil's auto formatting noremap :PFormatToggle inoremap :PFormatToggle