Files
nvim/keymap.vim
2021-10-23 15:22:14 +02:00

31 lines
828 B
VimL

" Custom keymappings
" Toggle through open buffers via F8
noremap <F8> :bnext <CR>
noremap <S-F8> :bprevious <CR>
" Define a shortcut to turn on NERDTree
map <C-n> :NERDTreeToggle <CR>
" Copy to clipboard with Ctrl+C when in visual mode
vnoremap <C-c> "+y
" Copy to clipboard with Ctrl+C when in normal mode
noremap <C-c> "+y
" Paste from clipboard with Ctrl+V when in insert or command mode
map! <C-v> <C-o>"+p
" Open the terminal in a separate window
noremap <A-t> :belowright split +resize12 term://zsh<CR>
" Delete the current buffer without closing the window in normal mode
noremap <C-S-d> :bnext <CR> :bd#<CR>
" Map ale wraps to control+k and control+j
nmap <silent> <C-k> <Plug>(LspPreviousDiagnostic)
nmap <silent> <C-j> <Plug>(LspNextDiagnostic)
" Map vim-grammarous to <F6>
nmap <F6> :GrammarousCheck <CR>