VIM: Adds ctrl+c and ctrl+v mappings for clipboard use

Jonathan Hodgson 4 years ago
parent b6958e313c
commit 7943ce0359
  1. 5
      nvim/.config/nvim/plugin/mappings.vim

@ -14,3 +14,8 @@ nnoremap <c-h> <c-w>h
nnoremap <c-j> <c-w>j nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k nnoremap <c-k> <c-w>k
nnoremap <c-l> <c-w>l nnoremap <c-l> <c-w>l
" Make Ctrl C and Ctrl V work on system clipboard
" if in visual or insert mode respectively
vnoremap <C-c> "+y
inoremap <C-v> <Esc>"+pa

Loading…
Cancel
Save