[kwlug-disc] I give up, but with one question
Khalid Baheyeldin
kb at 2bits.com
Sun Dec 8 18:53:55 EST 2024
That is an awesome tutorial Jason ...
I never used the split panes (vertical or horizontal), except when
I accidentally type a command that causes them.
So much functionality one is missing out on, but so little muscle memory
/ matter of habit.
For the c command, I only use one variant (matter of habit), which is cw
Short for "change word".
Also, for ex mode (the commands preceded by a colon), there are many
useful variations:
Range can be relative, so what comes before the s can be like this:
:-1,+3s/this/THAT/g
And this
:%s/this/THAT/g
Is identical to:
:1,$s/this/THAT/g
And you can ask vi/vim to confirm each change before applying it,
so you can be selective or if you are not sure :
:%s/this/THAT/gc
And if you do:
:%s/this/THAT/
Without a terminal g, it will change only the first occurrence of this on
each line, but not subsequent ones.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20241208/82e20b43/attachment.htm>
More information about the kwlug-disc
mailing list