[lug] Few vi problems
Holshouser, David
dholshou at ball.com
Tue Mar 27 08:32:38 MST 2001
My favorite way to do this is a little simpler if not as efficient.
Place your cursor on the first letter you want yanked.
enter the number of characters you want yanked.
Press x
9x
will CUT 9 letters. You will then hit p to Put them back where you cut them
from
and they will still be in your buffer for use elsewhere.
> -----Original Message-----
> From: John Starkey [SMTP:jstarkey at advancecreations.com]
> Sent: Tuesday, March 27, 2001 1:00 AM
> To: lug at lug.boulder.co.us
> Subject: [lug] Few vi problems
>
> Can someone help with this? I've looked through every vi manual I could
> find online and in :h
>
> I need to yank x chars from some code. yw isn't gonna work because of
> the chars. Optimally I'd like to be able to grab:
>
> <td bgcolor=" <.?php $bgcolor ?> ">
> ^ ^
> The spaces between the carrots is what i need to yank and paste.
>
> The next question: I'm on a remote FreeBSD virtual server. I've tried
> every .* file I could think of (.vimrc, .virc, .exrc) and couldn't get
> it to load in my vimrc. Is there a way to specify the rc file path in
> vi? And on a related note, is there a way to specify the syntax file
> path?
>
> Thanks,
>
> John
>
>
>
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list