DEV Community

sa3i0l
sa3i0l

Posted on

copy/paste/cut on vim using ctrl+c/ctrl+shift+v/ctrl+x

" paste with ctrl + shift + v . because ctrl + v is for block mode. you can use <C-V> if you want ctrl + v , but then no block visual selection, which is useful 
nmap <C-S-V> "+gP
imap <C-S-V> <ESC><C-V>ia

" copy selection
vmap <C-C> "+y

" cut selection
vnoremap <C-X> "+ygvd

" Also for best experience you will need, to use this with mouse support.
set mouse=a
Enter fullscreen mode Exit fullscreen mode

Top comments (0)