34 lines
901 B
VimL
34 lines
901 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>
|
|
|
|
" Map the esc key to close a terminal
|
|
tnoremap <ESC> <C-\><C-n>:bd!<CR>
|