On 2011-08-25, Bastien Dejean wrote:
> Hi,
> 
> How can I write only the selected characters of a line?
> 
> Suppose I'm selecting the word 'foo' from the line 'foo bar', if I issue
> :'<,'>w ! xclip, the output of xclip -o is going to be 'foo bar' and not
> 'foo'...

I always use Charles Campbell's vis.vim script for this sort of
thing.  With that plugin installed, you would visually select 'foo',
then type

    :B w ! xclip

You can get the script at

    http://vim.sourceforge.net/scripts/script.php?script_id=1195

Regards,
Gary

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to