Re: Yanking multi-line pattern matches

2006-09-06 Thread Elliot Shank
Hari Krishna Dara wrote: On Wed, 6 Sep 2006 at 12:18pm, Druce, Richard wrote: I'm trying to select all the text matching a (multi-line) pattern so I can put it into a separate document. I thought the global command would work but it only copies the first matching line, does anyone know a

Re: Yanking multi-line pattern matches

2006-09-06 Thread Yakov Lerner
On 9/6/06, Elliot Shank [EMAIL PROTECTED] wrote: Hari Krishna Dara wrote: On Wed, 6 Sep 2006 at 12:18pm, Druce, Richard wrote: I'm trying to select all the text matching a (multi-line) pattern so I can put it into a separate document. I thought the global command would work but it only

Re: quick and dirty compile

2006-09-06 Thread A.J.Mechelynck
Sibin P. Thomas wrote: Thank a lot to everyone! I added the following to my _vimrc file to get what I wanted nmap C-F9 :MakecompileCR nmap F5 :MakexecCR :!%.exeCR command Makecompile :se makeprg=gcc\ -o\ %.o\ % | :make! command Makexec :se makeprg=gcc\ -o\ %\ % | :make! Regards, Sibin We're

Re: Yanking multi-line pattern matches

2006-09-06 Thread Hari Krishna Dara
On Wed, 6 Sep 2006 at 7:01am, Yakov Lerner wrote: On 9/6/06, Elliot Shank [EMAIL PROTECTED] wrote: Hari Krishna Dara wrote: On Wed, 6 Sep 2006 at 12:18pm, Druce, Richard wrote: I'm trying to select all the text matching a (multi-line) pattern so I can put it into a separate document.

Re: Yanking multi-line pattern matches

2006-09-06 Thread A.J.Mechelynck
Yakov Lerner wrote: On 9/6/06, Elliot Shank [EMAIL PROTECTED] wrote: Hari Krishna Dara wrote: On Wed, 6 Sep 2006 at 12:18pm, Druce, Richard wrote: I'm trying to select all the text matching a (multi-line) pattern so I can put it into a separate document. I thought the global command would

Re: Search and replace as per format

2006-09-06 Thread A.J.Mechelynck
Srinivas Rao. M wrote: Hi Tim, Charles, I am rather looking at a generic substitution where the number of open quotes are matched, and then add an argument to log(). IN a generic aproach we may have a variable number of arguments, just like thwe way printf() supports. The strings like module

Re: Yanking multi-line pattern matches

2006-09-06 Thread Yakov Lerner
On 9/6/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/6/06, Druce, Richard [EMAIL PROTECTED] wrote: I'm trying to select all the text matching a (multi-line) pattern so I can put it into a separate document. I thought the global command would work but it only copies the first matching line,

RE: [help?] ezmlm warning

2006-09-06 Thread Zdenek Sekera
I got exactly the same message. No explanation, such messages come occassionally, very annoying. ---Zdenek -Original Message- From: Max Dyckhoff [mailto:[EMAIL PROTECTED] Sent: 05 September 2006 17:48 To: vim@vim.org Subject: [help?] ezmlm warning Has anyone else had this

man pages in gvim

2006-09-06 Thread Andrei A. Voropaev
Hello! If I hit K in normal mode, then I get man page for the word I'm in. But in gvim this does not quite work. First I get the warning Terminal is not fully functional, and then comes the man page with formatting like this SYNOPSIS #include sys/poll.h int

Re: man pages in gvim

2006-09-06 Thread Vincent Wang
I don't know how to fix the problem, but I use manpageview.vim(http://vim.sourceforge.net/scripts/script.php?script_id) to view man page, info page, python docs, perl docs and more(the plugin is configurable to view other help docs similiar with man page). It works perfectly. Suggest you give

Re: man pages in gvim

2006-09-06 Thread Yakov Lerner
On 9/6/06, Andrei A. Voropaev [EMAIL PROTECTED] wrote: Hello! If I hit K in normal mode, then I get man page for the word I'm in. But in gvim this does not quite work. First I get the warning Terminal is not fully functional, and then comes the man page with formatting like this

html file to cvs

2006-09-06 Thread Nikolaos A. Patsopoulos
Hi all, I have the following problem: I have a huge pack of html files (1000) and I want to extract some info on cvs files. The html source looks like this: ./code / bSource:/b/code/ 338 (13): 853-860 MAR 26 1998nbsp;/code /bAddresses:/b/code/ a href=http:./code/ Northwestern

Re: man pages in gvim

2006-09-06 Thread Andrei A. Voropaev
On Wed, Sep 06, 2006 at 09:44:22AM +, Yakov Lerner wrote: On 9/6/06, Andrei A. Voropaev [EMAIL PROTECTED] wrote: Hello! If I hit K in normal mode, then I get man page for the word I'm in. But in gvim this does not quite work. First I get the warning Terminal is not fully functional, and

RE: quick and dirty compile

2006-09-06 Thread Sibin P. Thomas
I have tested it and it works without any hitch on my system. (WinXp SP2 with Cygwin) Regards, Sibin -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 12:55 PM To: Sibin P. Thomas Cc: Yegappan Lakshmanan; vim@vim.org Subject: Re:

Re: Smarter Indent (an odd problem)

2006-09-06 Thread Andy Wokula
Let me take this opportunity to try once again to drum up support for an idea that I have proposed before. IMO it is too restrictive to make options (such as syntax highlighting, 'textwidth', and indent-related options) apply to a whole file. There should be a convenient, consistent

Re: quick and dirty compile

2006-09-06 Thread hermitte
Sibin P. Thomas [EMAIL PROTECTED] wrote: If you are compiling with gmake, and there is no Makefile in your directory, a simple nnoremap F5 :make %cr should be enough. BTW, 'makeprg' is meant to be defined in terms of $*. Then, we can define the mapping to pass % to :make. -- Luc Hermitte

Re: Smarter Indent (an odd problem)

2006-09-06 Thread Yakov Lerner
On 8/7/06, Benji Fisher [EMAIL PROTECTED] wrote: On Sat, Aug 05, 2006 at 02:24:45PM -0400, JStrom wrote: Recently though, I noticed that the PHP formatting also uses the HTML formatting code, and I do like PHP's smart-indentation. Is there some way I can tell vim to bring the indentation

mixed filetypes (was: Smarter Indent)

2006-09-06 Thread Benji Fisher
On Wed, Sep 06, 2006 at 11:54:23AM +, Yakov Lerner wrote: On 8/7/06, Benji Fisher [EMAIL PROTECTED] wrote: Let me take this opportunity to try once again to drum up support for an idea that I have proposed before. IMO it is too restrictive to make options (such as syntax

Re: mixed filetypes (was: Smarter Indent)

2006-09-06 Thread Yakov Lerner
On 9/6/06, Benji Fisher [EMAIL PROTECTED] wrote: On Wed, Sep 06, 2006 at 11:54:23AM +, Yakov Lerner wrote: On 8/7/06, Benji Fisher [EMAIL PROTECTED] wrote: Let me take this opportunity to try once again to drum up support for an idea that I have proposed before. IMO it is too

au event at subwindow resize ?

2006-09-06 Thread Yakov Lerner
Which autoevent do I get when subwindow is resized like at Ctrl-W+ ? Yakov

write line number to STDOUT

2006-09-06 Thread Jorge Almeida
When a text file is reopened with vim, the cursor appears where it was left last time. But this is not robust, at least to my experience (at least when vim is updated, I've lost information about the position of the cursor). So, unless there is a way to really keep the information, I would like to

Re: [help?] ezmlm warning

2006-09-06 Thread Silent1
yeah i also get them, and it also happens on other lists i'm on too (php user mail list). --Brendon On 9/6/06, Zdenek Sekera [EMAIL PROTECTED] wrote: I got exactly the same message. No explanation, such messages come occassionally, very annoying. ---Zdenek -Original Message- From:

Re: write line number to STDOUT

2006-09-06 Thread Jorge Almeida
On Wed, 6 Sep 2006, Yakov Lerner wrote: Are you on Windows ? No way! On unix/linux, it's dubious you would lose viminfo contents (that' where cursor positions come from) when upgrading vim. I upgrade vim often, and I never lose cursor positions (linux). Well, I did more than once, but I

Re: write line number to STDOUT

2006-09-06 Thread A.J.Mechelynck
Jorge Almeida wrote: On Wed, 6 Sep 2006, Yakov Lerner wrote: Are you on Windows ? No way! On unix/linux, it's dubious you would lose viminfo contents (that' where cursor positions come from) when upgrading vim. I upgrade vim often, and I never lose cursor positions (linux). Well, I did more

Re: Vim BOF session

2006-09-06 Thread Charles E Campbell Jr
I'd still like to see Vince Negri's ideas (ownsyntax, conceal) included. Regards, Chip Campbell

Re: [help?] ezmlm warning

2006-09-06 Thread Marvin Renich
* Zdenek Sekera [EMAIL PROTECTED] [060906 04:13]: I got exactly the same message. No explanation, such messages come occassionally, very annoying. ---Zdenek This happens to me occasionally, too, but the text of the message seems pretty clear to me. I run my own mail server, though, so

C:\Temp permission issues with taglist

2006-09-06 Thread stephen
I'm using the taglist plugin and am running into the following issue: Error detected while processing function SNR16_Tlist_Window_Toggle..SNR16_TList_Window_Open..SNR ...[snip] line 57: E484: Can't open file C:/Temp/VIo10A9.tmp I've tried fiddling with the permissions of C:\temp but no luck. Any

Re: Problem with 'lisp' and commented sexps

2006-09-06 Thread Charles E Campbell Jr
Yang wrote: There seems to be an 'undocumented feature' when editing Lisp files with the 'lisp' option set. I can no longer % between matching s-expressions []{}() if they are in comments and on newlines, e.g. in: ;; myfold {{{ (blah blah) ;; }}} ;; (blah ;; blah) I can't jump between the {}

Re: Syntax question regarding \%[

2006-09-06 Thread Charles E Campbell Jr
Yakov Lerner wrote: Even better would be use syn keyword: syn keyword Error int inte integ intege integer inter interv interva interval On the other hand, both of your 'syn match'es use same group, so why 2nd match taking over would be a problem anyway ? Probably syn keyword Error

Re: write line number to STDOUT

2006-09-06 Thread Yakov Lerner
On 9/6/06, Jorge Almeida [EMAIL PROTECTED] wrote: On Wed, 6 Sep 2006, Yakov Lerner wrote: Are you on Windows ? No way! On unix/linux, it's dubious you would lose viminfo contents (that' where cursor positions come from) when upgrading vim. I upgrade vim often, and I never lose cursor

Re: Modify flag

2006-09-06 Thread Charles E Campbell Jr
Yakov Lerner wrote: On 9/2/06, Shashi Kumar [EMAIL PROTECTED] wrote: How can I disable automatic setting of the modified flag or auto save option? I have set some option with which I think VIM is automatically saving the file thus changing the timestamp of the file. This poses a problem

Re: [BUG?] Syntax question regarding \%[

2006-09-06 Thread Tim Chase
inte integ intege integer inter interv interva interval is there any easy way to make these two commands work? syntax match Error /int\%[eger]/ syntax match Error /int\%[erval]/ The second match begins taking priority as soon as the word is 'inte', and prevents 'integer'

Re: write line number to STDOUT

2006-09-06 Thread Jorge Almeida
On Wed, 6 Sep 2006, Yakov Lerner wrote: This is probably what's causing you problems, *not* the vim updates. There is no way that vim update would overwrite the ~/.viminfo file. You're right. I'll use session files, rather than change the viminfo limit. Thank you. Jorge

Re: quick and dirty compile

2006-09-06 Thread Yegappan Lakshmanan
Hi, On 9/6/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Sibin P. Thomas wrote: Thank a lot to everyone! I added the following to my _vimrc file to get what I wanted nmap C-F9 :MakecompileCR nmap F5 :MakexecCR :!%.exeCR command Makecompile :se makeprg=gcc\ -o\ %.o\ % | :make! command

Re: C:\Temp permission issues with taglist

2006-09-06 Thread Yegappan Lakshmanan
Hi, On 9/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm using the taglist plugin and am running into the following issue: Error detected while processing function SNR16_Tlist_Window_Toggle..SNR16_TList_Window_Open..SNR ...[snip] line 57: E484: Can't open file C:/Temp/VIo10A9.tmp I've

Re: html file to cvs

2006-09-06 Thread Devin Weaver
I don't fully understand what you mean by a cvs file whether that refers to a congruent visioning file or if you meant a comma separated values file. Based on the sample output I'm assuming a CSV file using semi-colons. I choose PERL at the Swiss-Army knife of scripts and was able to whip

Re: au event at subwindow resize ?

2006-09-06 Thread Yegappan Lakshmanan
Hi Yakov, On 9/6/06, Yakov Lerner [EMAIL PROTECTED] wrote: Which autoevent do I get when subwindow is resized like at Ctrl-W+ ? I don't think an autocmd is invoked when a Vim subwindow is resized. - Yegappan

Re: html file to cvs

2006-09-06 Thread Nikolaos A. Patsopoulos
Devin Weaver wrote: I don't fully understand what you mean by a cvs file whether that refers to a congruent visioning file or if you meant a comma separated values file. Based on the sample output I'm assuming a CSV file using semi-colons. I choose PERL at the Swiss-Army knife of scripts and

Re: mixed filetypes (was: Smarter Indent)

2006-09-06 Thread Mikolaj Machowski
Dnia środa, 6 września 2006 14:22, Benji Fisher napisał: If you use omnicompletion in your perl files, wouldn't you like it to work when you are embedding perl in a shell script? This can be done already. In fact I've done it in php/js/html/css omnicompletion plugins. But it requires some

Re: vim 7 errors

2006-09-06 Thread Bram Moolenaar
Paul van Erk wrote: More info; I found this in my .(g)vimrc : set matchpairs+=?::,=:; so that's: PLUS EQUALS QUESTION_MARK COLON COLON COMMA EQUALS COLON SEMICOLON It's been in there for ages (checked some backups and I've had my rc file for 2 years or so, I think) and never gave me

Re: [BUG?] Syntax question regarding \%[

2006-09-06 Thread Bram Moolenaar
Tim Chase wrote: I suspect, in testing ideas on this, I may have turned up a bug in either the implementation of \%[] or its documentation needs a remedy. In theory, the following should work: :match Error /int\%[\(eger\|erval\)]/ I base that assumption on a combination of

Re: bug in confirm() and default option

2006-09-06 Thread Bram Moolenaar
Hari Krishna Dara wrote: Many GUIs don't support a dialog without a button selected. Disabling the use of Enter to select a button isn't a good idea either. Thus for some GUIs it simply won't work to have a dialog without a default. I know for sure Windows native UI supports dialogs

Re: [BUG?] Syntax question regarding \%[

2006-09-06 Thread Tim Chase
If this is not the case, the help for \%[] may likely intend to refer to ordinary atoms rather than atoms. *However*, the above search/match expression returns an E369: invalid item in \%[] error. I get this both in vim6.3 and vim7. The documentation omits to mention that \(\) things are not

Re: [BUG?] Syntax question regarding \%[

2006-09-06 Thread Bram Moolenaar
Tim Chase wrote: If this is not the case, the help for \%[] may likely intend to refer to ordinary atoms rather than atoms. *However*, the above search/match expression returns an E369: invalid item in \%[] error. I get this both in vim6.3 and vim7. The documentation omits to

Re: write line number to STDOUT

2006-09-06 Thread A.J.Mechelynck
Jorge Almeida wrote: On Wed, 6 Sep 2006, A.J.Mechelynck wrote: The viminfo file holds mark positions for a finite number of files. How many Yes, that's what I suspected. After vim -S vimbook.vim I don't think it will be updated at exit, UNLESS you add the following to your vimrc:

Re: write line number to STDOUT

2006-09-06 Thread Jorge Almeida
On Thu, 7 Sep 2006, A.J.Mechelynck wrote: To do something when closing down, place it in an autocommand for the VimLeave autocommand (as above). To do it during startup, place it in your vimrc. To do it at the cery end of startup, put it in an autocommand dor the VimEnter autocommand. And

Re: Syntax question regarding \%[

2006-09-06 Thread Peter Hodge
Hello everyone, Thank you for your help ... syn keyword Error inte[ger] inte[rval] Unfortunately I need to use matches because the 'words' contain the '.' character, and I also need to be able to use a look-behind assertion. The thing is, I wanted to be able to write each match so that

completeopt issue

2006-09-06 Thread Chris Sutcliffe
Hey All, I'm not sure if this is a bug or if I'm missing something. In my _vimrc file I have: completeopt=preview because I would like to have the preview window to see the function arguments and the return types, but I don't want to have the menu popup (I prefer to cycle through the

Re: Syntax question regarding \%[

2006-09-06 Thread A.J.Mechelynck
Peter Hodge wrote: Hello everyone, Thank you for your help ... syn keyword Error inte[ger] inte[rval] Unfortunately I need to use matches because the 'words' contain the '.' character, and I also need to be able to use a look-behind assertion. The thing is, I wanted to be able to write

Re: quick and dirty compile

2006-09-06 Thread A.J.Mechelynck
Yegappan Lakshmanan wrote: Hi, On 9/6/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Sibin P. Thomas wrote: Thank a lot to everyone! I added the following to my _vimrc file to get what I wanted nmap C-F9 :MakecompileCR nmap F5 :MakexecCR :!%.exeCR command Makecompile :se makeprg=gcc\ -o\

Re: write line number to STDOUT

2006-09-06 Thread A.J.Mechelynck
Gene Kwiecinski wrote: The viminfo file holds mark positions for a finite number of files. How many can be set via the 'viminfo' option (q.v.). If the file is pushed Quick question: whut's the q.v. mean? /Quo vadis/? I've seen you use this before, but keep forgetting to ask... quod

Re: Syntax question regarding \%[

2006-09-06 Thread Peter Hodge
Hello, --- A.J.Mechelynck [EMAIL PROTECTED] wrote: So, it matches a part-word. Try adding an end-of-word pattern atom \ before the ending slash (but after the ending bracket) on each line. You wouldn't want session.cookie_nomatch to be matched as far as session.cookie_ would you?

Re: matchparen tweak

2006-09-06 Thread Benji Fisher
On Wed, Sep 06, 2006 at 02:15:36AM +0200, A.J.Mechelynck wrote: Benji Fisher wrote: Now that the problem has been pointed out, I think the patch should be made in the official distribution. How about (simple but oh, so clever) let plist = split(matchpairs, '.\zs.') which

Help non-functional in 7.0.90

2006-09-06 Thread A.J.Mechelynck
In (g)vim 7.0.90, when I try to invoke the help, let's say :help :help the program hangs; and when I finally hit Ctrl-C I get: E426: tag not found: :[EMAIL PROTECTED] Similarly for F1 E426: tag not found: [EMAIL PROTECTED] Running :helptags in the doc/ subdirectories of all 'rtp'

Re: using hidden unlisted buffer as transparently as possible

2006-09-06 Thread Marvin Renich
Bram, In a thread started here [0] back in July I reported a problem I was having with messages not being displayed in the right order. It was determined during that thread that there was a difference of behavior based on whether hidden was set or not. Buried in one of the later messages, I

Re: Re: Help non-functional in 7.0.90

2006-09-06 Thread Adam Mercer
On 06/09/06, Charles E Campbell Jr [EMAIL PROTECTED] wrote: A.J.Mechelynck wrote: In (g)vim 7.0.90, when I try to invoke the help, let's say :help :help the program hangs; and when I finally hit Ctrl-C I get: E426: tag not found: :[EMAIL PROTECTED] Similarly for F1 E426: tag not

Re: Help non-functional in 7.0.90

2006-09-06 Thread Bill McCarthy
On Wed 6-Sep-06 8:01am -0600, A.J.Mechelynck wrote: In (g)vim 7.0.90, when I try to invoke the help, let's say :help :help the program hangs; and when I finally hit Ctrl-C I get: E426: tag not found: :[EMAIL PROTECTED] Similarly for F1 E426: tag not found: [EMAIL PROTECTED]

Re: using hidden unlisted buffer as transparently as possible

2006-09-06 Thread Bram Moolenaar
Marvin Renich wrote: In a thread started here [0] back in July I reported a problem I was having with messages not being displayed in the right order. It was determined during that thread that there was a difference of behavior based on whether hidden was set or not. Buried in one of the

Re: Help non-functional in 7.0.90

2006-09-06 Thread A.J.Mechelynck
Charles E Campbell Jr wrote: A.J.Mechelynck wrote: In (g)vim 7.0.90, when I try to invoke the help, let's say :help :help the program hangs; and when I finally hit Ctrl-C I get: E426: tag not found: :[EMAIL PROTECTED] Similarly for F1 E426: tag not found: [EMAIL PROTECTED] Running

Re: Help non-functional in 7.0.90

2006-09-06 Thread A.J.Mechelynck
A.J.Mechelynck wrote: In (g)vim 7.0.90, when I try to invoke the help, let's say :help :help the program hangs; and when I finally hit Ctrl-C I get: E426: tag not found: :[EMAIL PROTECTED] Similarly for F1 E426: tag not found: [EMAIL PROTECTED] Running :helptags in the doc/

Re: Help non-functional in 7.0.90

2006-09-06 Thread scott
On Thu, 2006-09-07 at 01:57 +0200, A.J.Mechelynck wrote: A.J.Mechelynck wrote: In (g)vim 7.0.90, when I try to invoke the help, let's say :help :help the program hangs; and when I finally hit Ctrl-C I get: E426: tag not found: :[EMAIL PROTECTED] Similarly for F1

Re: Help non-functional in 7.0.90

2006-09-06 Thread A.J.Mechelynck
scott wrote: On Thu, 2006-09-07 at 01:57 +0200, A.J.Mechelynck wrote: A.J.Mechelynck wrote: In (g)vim 7.0.90, when I try to invoke the help, let's say :help :help the program hangs; and when I finally hit Ctrl-C I get: E426: tag not found: :[EMAIL PROTECTED] Similarly for F1 E426: tag

indenting weirdness

2006-09-06 Thread scott
help! i'm at 7.0.90, but i've noticed the indenting weirdness before, so i don't know when it really started i think the other time(s) too it was in my 'ai' module, which, although it has a .txt extenstion, comes up with 'filetype=' so weird ok -- no filetype is defined -- fine -- this still

Re: indenting weirdness

2006-09-06 Thread Peter Hodge
Hello scott, The 'filetype=' message is what happens when you use ':set filetype=' and don't specify any filetype. If you have 'cindent' turned on, Vim will add an indent after a line ending in a comma (,) and your sample sentence does. Use ':set cindent?' to check if it is turned on. regards,

Re: indenting weirdness

2006-09-06 Thread A.J.Mechelynck
scott wrote: help! i'm at 7.0.90, but i've noticed the indenting weirdness before, so i don't know when it really started i think the other time(s) too it was in my 'ai' module, which, although it has a .txt extenstion, comes up with 'filetype=' so weird ok -- no filetype is defined -- fine

Re: Help non-functional in 7.0.90

2006-09-06 Thread scott
On Thu, 2006-09-07 at 05:58 +0200, A.J.Mechelynck wrote: scott wrote: On Thu, 2006-09-07 at 01:57 +0200, A.J.Mechelynck wrote: A.J.Mechelynck wrote: In (g)vim 7.0.90, when I try to invoke the help, let's say :help :help the program hangs; and when I finally hit Ctrl-C I get:

Re: indenting weirdness

2006-09-06 Thread scott
peter-- that was the clue i needed -- after turning 'cindent' off i was able to type an optimistic man might be tempted to celebrate -- we have proven, after all, that life goes on after microsoft -- macros can be created in OOo basic, however bloody without the indenting weirdness as much

text is gone

2006-09-06 Thread scott
ok, so help me out here i've looked at filetype vim, and i see nothing that associates _.txt modules with ft=txt whether i enter my 'ai' modules with the script or by navigating to where they are and, with my bloody fingers typing 'gvim ai_200609.txt', still, inside the module, filetype is

Re: Help non-functional in 7.0.90

2006-09-06 Thread scott
On Thu, 2006-09-07 at 06:55 +0200, A.J.Mechelynck wrote: scott wrote: On Thu, 2006-09-07 at 05:58 +0200, A.J.Mechelynck wrote: scott wrote: On Thu, 2006-09-07 at 01:57 +0200, A.J.Mechelynck wrote: A.J.Mechelynck wrote: In (g)vim 7.0.90, when I try to invoke the help, let's say