:map:q! :map <C-c> :w !xclip :map <C-v> :r!xclip -o :map <C-w> :wq! :map <C-z> :u
To use the above, just save the above contents to a file (say, easyedit.vim, in the home directory ~/easyedit.vim) and include the following into the ~/.vimrc file as follows:
so ~/easyedit.vim
Then start up vim, and you can see that you can use ctrl-c, ctrl-v, ctrl-z, ctrl-w and esc buttons and see behavior as expected in a graphical editor
shell says:
ReplyDelete:r!xclip -o
shell returned 127
Press ENTER or type command to continue
Looks like xclip is not there
ReplyDeleteInstall it using:
# Opensuse
zypper install xclip
# Ubuntu
aptitude install xclip