[CLUE-Talk] Vim yank into named buffer?

Jeffery Cann jc_cann at yahoo.com
Tue Aug 6 14:19:23 MDT 2002


Greetings.

My colleague at work is learning vi (actually using vim).  She asked me the
following question: I want to copy this text 'width="332" height="87" from this
line into a named buffer.  What's the best way?

  <img src="../images/mi_home_splash.gif" width="332" height="87">

My initial thoughts were
 1.  Move the cursor to the 'w' in 'width' and "aD
 2.  Move the cursor to to the 'w' and "a8w

Both include the > which is not needed and #1 will delete to the end of line,
forcing the user to 'u' to put it back, which seems like an uncessary step.

What I thought I could tell her was to yank X number of characters, but this
doesn't seem to be available.  So, I pose the question for others and would
like to see alternatives.

Thanks
Jeff

=====
Protect Digital Rights!
http://www.eff.org/support/joineff-cc.html

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com



More information about the clue-talk mailing list