Re: How to know if a line is commented in C

2009-11-24 Thread epanda
Thanks it returns cCommentL when I am into a comment and returns nothing when I am into code lines. Very Powerful Thanks :) On 24 nov, 01:51, pansz panshi...@routon.com wrote: epanda 写道: Hi, I would like to know if a found line of my search is in a comment block . /*              

Re: problems with c.vim

2009-11-24 Thread Gary Johnson
On 2009-11-23, lirenlin wrote: thanks,you are right,it works. do you have some suggestions for programmers who use vim?i am a fresh man,i found it's marvelous! It _is_ a marvelous editor. One could write a book on effective ways for a programmer to use Vim. I would suggest you use Google to

Re: How to know if a line is commented in C

2009-11-24 Thread Raúl Núñez de Arenas Coronado
Hi epanda, On Tue, Nov 24, 2009 at 09:03, epanda callingel...@hotmail.fr wrote: Thanks it returns cCommentL when I am into a comment and returns nothing when I am into code lines. Very Powerful You've already been warned about topposting. How many time are you keep on ignoring list

Re: How to know if a line is commented in C

2009-11-24 Thread epanda
It is certainly due to my poor knowledge in english. I am french On 24 nov, 09:22, Raúl Núñez de Arenas Coronado raul...@gmail.com wrote: Hi epanda, On Tue, Nov 24, 2009 at 09:03, epanda callingel...@hotmail.fr wrote: Thanks it returns cCommentL when I am into a comment and returns

Re: How to know if a line is commented in C

2009-11-24 Thread bill lam
On Tue, 24 Nov 2009, epanda wrote: It is certainly due to my poor knowledge in english. I am french On 24 nov, 09:22, Raúl Núñez de Arenas Coronado raul...@gmail.com wrote: [---=| TOFU protection by t-prot: 19 lines snipped |=---] You might try google translation to re-read that mailing

Re: How to know if a line is commented in C

2009-11-24 Thread Raúl Núñez de Arenas Coronado
Hi, On Tue, Nov 24, 2009 at 09:44, epanda callingel...@hotmail.fr wrote: It is certainly due to my poor knowledge in english. I am french I don't believe you didn't understand the warning. Have you even *tried* to read list guidelines? Anyway, don't toppost on this list. If you don't know

Re: How to know if a line is commented in C

2009-11-24 Thread epanda
I am not opposed to respect guidlines but I would like to know your disappointment about my messages ? What do I do that it is wrong please ? On 24 nov, 09:56, Raúl Núñez de Arenas Coronado raul...@gmail.com wrote: Hi, On Tue, Nov 24, 2009 at 09:44, epanda callingel...@hotmail.fr wrote: It

Re: Highlighting of spell corrected words

2009-11-24 Thread Eric Smith
Brilliant! -- - Eric Smith Christian Brabandt said: , | nmap tr :exe call matchadd('WarningMsg','\\%.line('.').'l'.expand(cword) . ')CR | nmap tq ma[S1z=tr| --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more

Re: problems with c.vim

2009-11-24 Thread Isaac
On Tue, Nov 24, 2009 at 4:05 PM, Gary Johnson garyj...@spocom.com wrote: On 2009-11-23, lirenlin wrote: thanks,you are right,it works. do you have some suggestions for programmers who use vim?i am a fresh man,i found it's marvelous! It _is_ a marvelous editor. One could write a book on

Re: How to know if a line is commented in C

2009-11-24 Thread Jan-Herbert Damm
hello, Raúl Núñez de Arenas Coronado wrote on 24.11.09: Hi, On Tue, Nov 24, 2009 at 10:01, epanda callingel...@hotmail.fr wrote: I am not opposed to respect guidlines but I would like to know your disappointment about my messages ? What do I do that it is wrong please ? Top

Re: About the internal function iconv

2009-11-24 Thread Yongwei Wu
2009/11/24 Bram Moolenaar b...@moolenaar.net: Winter wrote: I use vim to read the file which is the  attachment of this mail. This file can be read in with the encoding cp936, and thing goes well. When i read the file via “:e ++enc=sjis† ï¼ˆ with a wrong encoding ) , the vim shows

Re: playback recording by range?

2009-11-24 Thread Tim Chase
Jürgen Krämer wrote: :','g/^/norm @z (assuming your macro was in register z) no need to use :global, :','normal @z works, too. I've had just enough trouble forgetting which Ex commands (mostly the ones I don't use regularly) accept a range and which default to the first or

timed commands?

2009-11-24 Thread Lev Lvovsky
I'd like to run an ':mksession!' on a regular basis (automatically) - is there a generic timer function which I can wrap around that command (running it ever hour for example)? thanks, -lev --~--~-~--~~~---~--~~ You received this message from the vim_use

Re: How to get directory list from script ?

2009-11-24 Thread Tim Chase
I would like to write a vim script which reads into a list, the directory tree... how it is possible to get the subdirectories into a list ? (from PWD for example.) You can read in the output of a shell command, so you can use :r !find . on most *nix-like OSes, or on Windows, you can

Re: Something is messing up a simple mapping.

2009-11-24 Thread Charles Campbell
Chris Jones wrote: I have this in my .vimrc: nmap Space iSpaceEsc It lets me enter spaces without leaving normal mode. Or used to .. Fairly recently, this stopped working as expected: What happens if I hit space in normal mode, is that vim inserts an unlimited number of spaces,

Re: timed commands?

2009-11-24 Thread Brett Stahlman
On Nov 24, 10:39 am, Lev Lvovsky lis...@sonous.com wrote: I'd like to run an ':mksession!' on a regular basis (automatically) -   is there a generic timer function which I can wrap around that command   (running it ever hour for example)? You could accomplish this by using reltime() within

Re: search replace in repeat pattern

2009-11-24 Thread Tarlika Elisabeth Schmitz
On Mon, 23 Nov 2009 19:59:11 -0600 Tim Chase wrote: Vim's help is top-notch. Just about every facet you can think of is contained within. Finding it can be a bit more troublesome, especially if you know what you want, but don't know how Vim implements it. Using :helpgrep and tab/^D

Re: How to get directory list from script ?

2009-11-24 Thread Isaac
On Wed, Nov 25, 2009 at 2:09 AM, Tim Chase v...@tim.thechases.com wrote: I would like to write a vim script which reads into a list, the directory tree... how it is possible to get the subdirectories into a list ? (from PWD for example.) You can read in the output of a shell command,

expression to match dirname pattern

2009-11-24 Thread rob
My basic question is to come up with a regular expression to match and replace the following: /long/path/name/leading/up/to/filename | to filename | i.e. if the name contains a '/' as the first character, strip until (and including) the last '/' upto the first '|' in the pattern. In the end,

Re: How to change all the capital letters to small cases?

2009-11-24 Thread Kelly
I've used those methods for a long time. But I'm wondering if it's possible ...or if there is a similar command ...to change a line or sentence so that each word begins with a capital letter? -- Quoting Tim Chase (v...@tim.thechases.com): Subject: Re: How to change all the capital

wikia test starting today at 07:00 UTC

2009-11-24 Thread Tony Mechelynck
The second part of the wikia servers test will take place tonight, starting 2009-11-25 08:00 UTC. See http://www.wikia.com/wiki/User_blog:Crucially/Iowa_datacenter_test (and in particular the banner in bold italics at top). Best regards, Tony. -- If you think last Tuesday was a drag, wait

Re: wikia test starting today at 07:00 UTC

2009-11-24 Thread Tony Mechelynck
On 25/11/09 05:08, Tony Mechelynck wrote: The second part of the wikia servers test will take place tonight, starting 2009-11-25 08:00 UTC. See http://www.wikia.com/wiki/User_blog:Crucially/Iowa_datacenter_test (and in particular the banner in bold italics at top). Best regards, Tony.

Re: Something is messing up a simple mapping.

2009-11-24 Thread Chris Jones
On Tue, Nov 24, 2009 at 03:03:52PM EST, Charles Campbell wrote: Chris Jones wrote: I have this in my .vimrc: nmap Space iSpaceEsc [..] This map looks quite recursive; the iSpace invokes the map again (recursively), and repeats ad infinitum. Seems to me you want a no-remap; try

Re: How to change all the capital letters to small cases?

2009-11-24 Thread Christian Brabandt
On Wed, November 25, 2009 4:24 am, Kelly wrote: I've used those methods for a long time. But I'm wondering if it's possible ...or if there is a similar command ...to change a line or sentence so that each word begins with a capital letter? :s/\\l/\u/g regards, Christian