How to Use Vim with Clipboard on Debian
2015-09-09
Instructions
Install extra package that can complete more features on Vim with GUI. There many packages are available on the repository. That is
vim-athena
,vim-gnome
,vim-gtk
andvim-nox
. In this case, I have used Xfce which applies GTK GUI. I will installvim-gtk
for enable clipboard feature and others. For Gnome user, you should installingvim-gnome
. Read moreNow, you will found
+
registers in:reg
in Vim. Trick is use Vim registers
"+yy
for yank to+
register which is binding to clipboard"+p
(Normal mode) for paste from+
register which is binding to clipboardCtrl r
+
(Insert mode) for paste from+
register which is binding to clipboard
How to use registers in Vim
Show a list of registers: press
:reg
in normal modeAccess Vim registers: Press
"
and following name of register. Ex."0
for accessing0
register"+
for accessing+
register
Vim registers use: Press
"
[name]
and vim command. Ex."0yy
means to yank to0
register"5yy
means to yank to5
register"5p
means to paste from5
register
For more detail about Vim register, I will write a post later.