Tuesday, November 15, 2011

Vim Clipboard Support on Ubuntu

If recently wondered why clipboard doesn't work in vim on ubuntu (eg. "+y to copy to clipboard). It turned out, that the vim package doesn't ship with clipboard support enabled:

 vim --version | grep clipboard  
 -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments   
  -xterm_clipboard -xterm_save   

You need to install vim-gui-common to get clipboard support:

 vim --version | grep clipboard  
 +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments   
 +xsmp_interact +xterm_clipboard -xterm_save  


No comments:

Post a Comment