Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #636

Re: Linux and vim

From Todd Carnes <toddcarnes@gmail.com>
Newsgroups comp.os.linux.development.apps
Subject Re: Linux and vim
Date 2011-02-09 17:18 -0500
Organization Aioe.org NNTP Server
Message-ID <iiv3rq$b8m$1@speranza.aioe.org> (permalink)
References <472e3f1c-f1a9-4599-a768-eedc93554b40@w17g2000yqh.googlegroups.com> <ifjhmj$322$1@news.albasani.net> <2e4fee48-1c97-4bab-984b-08b5b8619f19@fm22g2000vbb.googlegroups.com>

Show all headers | View raw


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
>> 
>> Rouben Rostamian
> 
> 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.

Todd

Back to comp.os.linux.development.apps | Previous | Next | Find similar


Thread

Re: Linux and vim Todd Carnes <toddcarnes@gmail.com> - 2011-02-09 17:18 -0500

csiph-web