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

master
Jonathan Hodgson 4 years ago
parent 05cf5d188c
commit fa9e7ef249
  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-k> <c-w>k
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