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
and vim-nox
. In this case, I have used Xfce which applies GTK GUI. I will install vim-gtk
for enable clipboard feature and others. For Gnome user, you should installing vim-gnome
. Read more
$ sudo aptitude install vim-gtk
Now, 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:reg
in normal mode"
and following name of register.Ex.
"0
for accessing 0
register"+
for accessing +
register"
[name]
and vim command. Ex.
"0yy
means to yank to 0
register"5yy
means to yank to 5
register"5p
means to paste from 5
registerFor more detail about Vim register, I will write a post later.