Vim Tips Wiki
(Adjust previous/next navigation + minor manual clean)
Line 24: Line 24:
   
 
==Comments==
 
==Comments==
  +
Sometimes copy and paste is too painful. I am using Clickto app, it´s a freeware and with just one click we can send a text to e-mail, pdf, facebook or several other softwares. have a look www.clicktoapp.com
I think <Esc>yiw is more convenient.
 
 
 
----
 
----

Revision as of 22:34, 17 July 2011

Tip 834 Printable Monobook Previous Next

created 2004 · complexity basic · author andyf · version 6.0


Word-wise cut, copy & paste over the current word. There's nothing special or magical about these bindings, just that I find them really useful for coding, and I thought I'd share.

Add the following lines to vimrc:

map <A-v> viw"+gPb
map <A-c> viw"+y
map <A-x> viw"+x

These bindings follow the Windows-style keys of control-V, control-C, and control-X; except using alt instead of control. Adjust to your preference.

Comments

Sometimes copy and paste is too painful. I am using Clickto app, it´s a freeware and with just one click we can send a text to e-mail, pdf, facebook or several other softwares. have a look www.clicktoapp.com