shownotes-w3m-rice/vim_copy_paste_to_x_clipboard.txt

10 lines
320 B
Plaintext
Raw Normal View History

2013-03-28 19:16:55 +00:00
" ~/.vimrc
" copy or paste from X11 clipboard
" http://vim.wikia.com/wiki/GNU/Linux_clipboard_copy/paste_with_xclip
" requires: xclip
" usage: visual mode select then hit F6 to copy
" hit F7 to paste from GUI to vim without formating issues
vmap <F6> :!xclip -f -sel clip<CR>
map <F7> mz:-1r !xclip -o -sel clip<CR>`z