[Vim] cut and paste, 1 presse papier (Résolu)
Publié : jeu. 27 juin 2013, 22:24
Salut,
Je voudrais pouvoir utiliser qu'un seul copier/coller sous Vim et sous X11.
Je suis sous URxvt, pour coller de X11 à URxvt j'utilise shift+Ins, pour copier coller avec deux fichier vim
Enfin, ça fait beaucoup de raccourcis différents, j'aimerai avoir qu'un seul presse papier.
Une idée ?
Merci
Je voudrais pouvoir utiliser qu'un seul copier/coller sous Vim et sous X11.
Je suis sous URxvt, pour coller de X11 à URxvt j'utilise shift+Ins, pour copier coller avec deux fichier vim
Code : Tout sélectionner
vmap <C-c> :w! ~/.vim/.vbuf<CR> "copy the current visual selection to ~/.vbuf
nmap <C-c> :.w! ~/.vim/vbuf<CR> "copy the current line to the buffer file if no visual selection
nmap <C-v> :r ~/.vim/.vbuf<CR> "paste the contents of the buffer file
Enfin, ça fait beaucoup de raccourcis différents, j'aimerai avoir qu'un seul presse papier.
Une idée ?
Merci