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-gtkandvim-nox. In this case, I have used Xfce which applies GTK GUI. I will installvim-gtkfor enable clipboard feature and others. For Gnome user, you should installingvim-gnome. Read moreNow, you will found
+registers in:regin Vim. Trick is use Vim registers
"+yyfor 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
:regin normal modeAccess Vim registers: Press
"and following name of register. Ex."0for accessing0register"+for accessing+register
Vim registers use: Press
"[name]and vim command. Ex."0yymeans to yank to0register"5yymeans to yank to5register"5pmeans to paste from5register
For more detail about Vim register, I will write a post later.