Re: Linux and vim
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Thu, 10 Feb 2011 13:27:52 +0000
Todd Carnes <toddcarnes@xxxxxxxxx> writes:
On 12/31/2010 02:24 PM, Gordon Lightfoot wrote:
As to your comment:
Something this simple shouldn't require regular expressions.Yes, maybe. But then maybe not. Do you want "assume" to change to
"asSume"? Probably not. To tell vim that you want to change only
the word "sum", but not things like "assume" of "summer", then you
need to modify your command to: :%s/\<sum\>/Sum/g
[...]
Thanks for the info. As for the regular expressions, I'd use them if
necessary. Thing is, this was just a small file in some programming
language and I could see the whole file (< 20 lines probably), and I
knew there weren't any other occurrences of "sum" in the other words.
I just wanted to "pretty it up" some and change the s to a cap. Now,
with your help, I can avoid such a situation in the future!
Why don't you just use a better editor that's not so darned hard to use?
Vim is ANCIENT and outdated anyway.
This is a statement which doesn't make much sense for actively
developed software with a significant userbase. Also 'hard to use' is
an 'in the eye of the beholder' quality: Many people who took the time
to learn the vi interface (the 'm' didn't fell on the floor by
accident) believe it is a highly efficient and thus, very easy to
use, way of editing texts. Nobody has, so far, claimed that it would
be very easy to learn, however.
Disclosure of personal affliations: Predominantly, I'm using Emacs and
I also use vi (again, no 'm' here) and ed on a regular basis. The
latter is something I'd especially recommend to learn since it is very
convenient for certain editing tasks. I think the UWash people who
designed pine must have come from an alient planet and I absolutely
loathe pico or nano. They are certainly 'easy to use' in the sense
that, for people who haven't yet learned to walk, a playpen is easier
to use than their feet ...
.
- References:
- Re: Linux and vim
- From: Todd Carnes
- Re: Linux and vim
- Prev by Date: Re: memory use
- Next by Date: Re: memory use
- Previous by thread: Re: Linux and vim
- Next by thread: Re: Linux and vim
- Index(es):