[lug] Few vi problems
John Karns
jkarns at csd.net
Tue Mar 27 12:21:01 MST 2001
On Tue, 27 Mar 2001, John Starkey said:
>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.
If you're using vim as it would seem from your rc files below, then:
Maybe not as automated as you'd like, but how about using the visual mode
to yank the desired text / space?
>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?
Is vim aliased to something like "vim -C"?
-C Compatible. Set the 'compatible' option.
This will make Vim behave mostly like Vi, even
though a .vimrc file exists.
-N No-compatible mode. Reset the 'compatible'
option. This will make Vim behave a bit bet
ter, but less Vi compatible, even though a
.vimrc file does not exist.
----------------------------------------------------------------------
John Karns jkarns at csd.net
More information about the LUG
mailing list