Skip to content

Instantly share code, notes, and snippets.

@rkaneko
Created September 26, 2013 10:46
Show Gist options
  • Save rkaneko/6712561 to your computer and use it in GitHub Desktop.
Save rkaneko/6712561 to your computer and use it in GitHub Desktop.
Copy text config on Ubuntu vim .

description

Copy text into clipboard with Ctrl+c on Ubuntu vim .

references

requirements

  • vim-gtk

  • vim-athena

  • vim-gnome

  • xclip

  • xsel

installation

$ sudo apt-get -y install vim-gtk vim-athena vim-gnome

$ sudo apt-get -y install xclip

$ sudo apt-get -y install xsel

on .vimrc

vmap <C-c> :w !xsel -ib<CR><CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment