Monday, 11 May 2015

Installing VIM in debian 8

Installing VIM with clipboard support in debian 8(VIM series part-1)

TL;DR
1-Type this in terminal vim --version | grep xterm_clipboard.
[if result same as pic below]
2-Type this in terminal apt-get install vim-gtk or install using synaptic package manger

When I started using VIM i couldn't copy from VIM to system clipboard.after googling found that the VIM version i had didn't support clipboard.Type this in terminal vim --version | grep xterm_clipboard.

if you have the same result as above then we have install VIM with clipboard support one of them is vim-gtk.Install vim-gtk using synaptic package manger or type this in terminal ->apt-get install vim-gtk.
Examples: "+2yy – copy two lines to X11 clipboard
"+dd – cut line to X11 clipboard
"+p – paste X11 clipboard

some cool VIM cheat-sheets :sheet1,sheet2

:)

No comments:

Post a Comment