'acd' + :file, 'acd' : +saveas

2006-09-05 Thread Yakov Lerner
Giving buffer new name in different directory does not change to new directory, when 'acd' is set. This does not sound right, taking into account that switching buffers to and back makes current directory right. To reproduce: % vim -u NONE ~/xxx :set acd :he acdto have 2nd buffer

Patch 7.0.084

2006-09-05 Thread Bram Moolenaar
Patch 7.0.084 Problem:The garbage collector may do its work while some Lists or Dictionaries are used internally, e.g., by :echo that runs into the more-prompt or :echo [garbagecollect()]. Solution: Only do garbage collection when waiting for a character at the

Bug in vim7? cursor postion col() vs. utf8-character for showbreak

2006-09-05 Thread Thomas
I set showbreak to ¦ (some extended character). This works fine for latin1 etc. but causes troubles when the encoding is utf8. Cursor position, col() virtcol() values etc. are miscalculated for (soft)wrapped lines. Regards, Thomas.

Re: 'acd' + :file, 'acd' : +saveas

2006-09-05 Thread Bram Moolenaar
Yakov Lerner wrote: Giving buffer new name in different directory does not change to new directory, when 'acd' is set. This does not sound right, taking into account that switching buffers to and back makes current directory right. To reproduce: % vim -u NONE ~/xxx :set acd :he acd

Patch 7.0.087

2006-09-05 Thread Bram Moolenaar
Patch 7.0.087 Problem:After :file fname and :saveas fname the 'autochdir' option does not take effect. (Yakov Lerner) Commands for handling 'autochdir' are repeated many times. Solution: Add the DO_AUTOCHDIR macro and do_autochdir(). Use it for :file

Patch 7.0.088

2006-09-05 Thread Bram Moolenaar
Patch 7.0.088 Problem:When compiled with Perl the generated prototypes have extern unnecessarily added. Solution: Remove the -pipe argument from PERL_CFLAGS. Files: src/auto/configure, src/configure.in *** ../vim-7.0.087/src/auto/configure Thu May 4 23:52:03 2006 ---

Patch 7.0.089

2006-09-05 Thread Bram Moolenaar
Patch 7.0.089 Problem:ga does not work properly for a non-Unicode multi-byte encoding. Solution: Only check for composing chars for utf-8. (Taro Muraoka) Files: src/ex_cmds.c *** ../vim-7.0.088/src/ex_cmds.cTue Sep 5 16:29:38 2006 --- src/ex_cmds.c Tue Sep 5 18:12:41

Re: Patch 7.0.089

2006-09-05 Thread A.J.Mechelynck
Bram Moolenaar wrote: Patch 7.0.089 Problem:ga does not work properly for a non-Unicode multi-byte encoding. Solution: Only check for composing chars for utf-8. (Taro Muraoka) Files: src/ex_cmds.c Will this still work for non-Unicode charsets with composing chars, such as Arabic

Re: Bug in vim7? cursor postion col() vs. utf8-character for showbreak

2006-09-05 Thread A.J.Mechelynck
Thomas wrote: I set showbreak to ¦ (some extended character). This works fine for latin1 etc. but causes troubles when the encoding is utf8. Cursor position, col() virtcol() values etc. are miscalculated for (soft)wrapped lines. Regards, Thomas. If you aren't working in a Unicode

winrestview() + 'showcmd'

2006-09-05 Thread Yakov Lerner
I see erratic screen redraw (namely, curshor shown past last line of file, or on wrong line (which is not line('.'))). This vim 7.0.86 taken from svn today, including recent fix to winrestcmd(). It happens after certain winrestview() when 'showcmd' is set. This code works ok with 'noshowcmd'.

Patch 7.0.090

2006-09-05 Thread Bram Moolenaar
Patch 7.0.090 Problem:Cancelling the conform() dialog on the console with Esc requires typing it twice. (Benji Fisher) Solution: When the start of an escape sequence is found use 'timeoutlen' or 'ttimeoutlen'. Files: src/misc1.c *** ../vim-7.0.089/src/misc1.c

Re: winrestview() + 'showcmd'

2006-09-05 Thread Bram Moolenaar
Yakov Lerner wrote: I see erratic screen redraw (namely, curshor shown past last line of file, or on wrong line (which is not line('.'))). This vim 7.0.86 taken from svn today, including recent fix to winrestcmd(). It happens after certain winrestview() when 'showcmd' is set. This code

simple netrw feature sugestion

2006-09-05 Thread Rodolfo Borges
When I use the :Explore or :Sexplore command, the cursor could be positioned on the file I was just editing. PS: why are the .h's positioned after the .o's by default? I do know how to change it (removed the .h$ from g:netrw_sort_sequence), I'm just questioning what seems to me a non-sensible

Re: simple netrw feature sugestion

2006-09-05 Thread A.J.Mechelynck
Rodolfo Borges wrote: When I use the :Explore or :Sexplore command, the cursor could be positioned on the file I was just editing. PS: why are the .h's positioned after the .o's by default? I do know how to change it (removed the .h$ from g:netrw_sort_sequence), I'm just questioning what seems

Re: matchparen tweak

2006-09-05 Thread A.J.Mechelynck
Benji Fisher wrote: On Wed, Sep 06, 2006 at 01:20:13AM +0200, A.J.Mechelynck wrote: It's supposed to treat ? and : on the one hand, and = and ; on the other hand, as paired brackets. However, the matchparen plugin uses a rather elementary algorithm to split 'matchpairs' into individual items:

Re: Patch 7.0.082

2006-09-05 Thread Hari Krishna Dara
On Mon, 4 Sep 2006 at 9:50pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: I wrote: Patch 7.0.082 Problem:Calling a function that waits for input may cause List and Dictionary arguments to be freed by the garbage collector. Solution: Keep a list of

matchparen tweak (was: vim 7 errors)

2006-09-05 Thread Benji Fisher
On Wed, Sep 06, 2006 at 01:20:13AM +0200, A.J.Mechelynck wrote: It's supposed to treat ? and : on the one hand, and = and ; on the other hand, as paired brackets. However, the matchparen plugin uses a rather elementary algorithm to split 'matchpairs' into individual items: any colons and

Re: syntax borked

2006-09-05 Thread Jorge Almeida
On Tue, 5 Sep 2006, A.J.Mechelynck wrote: The gentoo package managing system need not be aware of your own-compiled Vim, any more that my SuSE package managing system is aware of my Vim 7.0.83 (e.g., it won't list it if I do rpm -qa |grep vim). But I suppose I would need to recompile vim

Re: syntax borked

2006-09-05 Thread Jorge Almeida
On Tue, 5 Sep 2006, Peter Hodge wrote: Hello Jorge, The problem is solved if you change this line: 768 sub reloadlist{ to this: 768 sub reloadlist { It looks as though it is a bug in the perl syntax file. You should send the maintainer an email with your perl code snippet,

Re: syntax borked

2006-09-05 Thread Peter Hodge
--- Jorge Almeida [EMAIL PROTECTED] wrote: It appears there is a bug in the syntax file (see reply by Peter Hodge). This brings up the question: How to install a syntax file without poluting the distribution system? In gentoo, the file is (for version 6.4):

Syntax question regarding \%[

2006-09-05 Thread Peter Hodge
Hello all, Given the following text: 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

Execute something when I enter in a directory

2006-09-05 Thread Andrea Spadaccini
Hello vimmers, I'd like to load some settings when I enter in a directory, like for instance setting makeprg. Is there a way to do it? Thanks in advance from a lurker! :) -- [ Andrea Spadaccini - a.k.a. Lupino - from Catania - ICQ #: 91528290 ] [ GPG ID: 5D41ABF0 - key on keyservers - Gentoo

Re: syntax borked

2006-09-05 Thread Jorge Almeida
On Tue, 5 Sep 2006, Peter Hodge wrote: Well, there was a bug in the older syntax file I used (the one from 2005), but the newer syntax file I downloaded is fine. If you don't want to put the new syntax file in your home directory (~/.vim/syntax/perl.vim), you can also put it in

Re: Syntax question regarding \%[

2006-09-05 Thread Yakov Lerner
On 9/5/06, Peter Hodge [EMAIL PROTECTED] wrote: Hello all, Given the following text: 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

Re: Execute something when I enter in a directory

2006-09-05 Thread Yakov Lerner
On 9/5/06, Andrea Spadaccini [EMAIL PROTECTED] wrote: Hello vimmers, I'd like to load some settings when I enter in a directory, like for instance setting makeprg. Is there a way to do it? Thanks in advance from a lurker! :) I have this in my .vimrc: au BufRead,BufNewFile * let

Re: Execute something when I enter in a directory

2006-09-05 Thread Andrea Spadaccini
Ciao Yakov, I have this in my .vimrc: au BufRead,BufNewFile * let x=expand('%:p:h')./.lvimrc | if filereadable(x) | exe source .x | endif let x=expand('%:p:h')./.lvimrc | if filereadable(x) | exe source .x | endif Then I put directory-specififc settings into file .lvimrc in that

matching question...one is cancelling the other

2006-09-05 Thread Robert Hicks
I have an option match for my Tcl syntax script as follows: syn match tclOptionMatcher \%(^\|\s\)\zs-[a-zA-Z]\+ contains=tclOptionStarter syn match tclOptionStarter contained - I also would like to get tclOperators going as well: syntax match tclOperator [~\-_+*\[\]{}=|[EMAIL

Re: Syntax question regarding \%[

2006-09-05 Thread Benji Fisher
On Tue, Sep 05, 2006 at 06:51:57PM +1000, Peter Hodge wrote: Hello all, Given the following text: 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

Re: syntax borked

2006-09-05 Thread A.J.Mechelynck
Jorge Almeida wrote: On Tue, 5 Sep 2006, A.J.Mechelynck wrote: The gentoo package managing system need not be aware of your own-compiled Vim, any more that my SuSE package managing system is aware of my Vim 7.0.83 (e.g., it won't list it if I do rpm -qa |grep vim). But I suppose I would need

Re: syntax borked

2006-09-05 Thread A.J.Mechelynck
Jorge Almeida wrote: On Tue, 5 Sep 2006, Peter Hodge wrote: Well, there was a bug in the older syntax file I used (the one from 2005), but the newer syntax file I downloaded is fine. If you don't want to put the new syntax file in your home directory (~/.vim/syntax/perl.vim), you can also put

Re: Syntax question regarding \%[

2006-09-05 Thread A.J.Mechelynck
Peter Hodge wrote: Hello all, Given the following text: 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

[help?] ezmlm warning

2006-09-05 Thread Max Dyckhoff
Has anyone else had this problem? Looking at the bounce message at the bottom shows that 131.107.1.8 (Microsoft's mail server) doesn't like 160.45.45.151 (is this the mailing list server?) because it is listed on spamcop (although a quick check of spamcop shows that isn't true). Anything I

Re: syntax borked

2006-09-05 Thread Jorge Almeida
On Tue, 5 Sep 2006, A.J.Mechelynck wrote: Jorge Almeida wrote: On Tue, 5 Sep 2006, Peter Hodge wrote: Best regards, Tony. Thanks again for your help. Regards, Jorge

Search and replace as per format

2006-09-05 Thread Srinivas Rao. M
Hi Vimmers, I am tasked to replace the pattern log(module_name, LOG_LEVEL_DEBUG, The Value of status=%d message, status); to log(module_name, LOG_LEVEL_DEBUG, %s:The Value of status=%d message,__FUNCTION__, status); This pattern is appearing in hundreds of source files. Does anybody have a

Re: [help?] ezmlm warning

2006-09-05 Thread A.J.Mechelynck
Max Dyckhoff wrote: Has anyone else had this problem? Looking at the bounce message at the bottom shows that 131.107.1.8 (Microsoft's mail server) doesn't like 160.45.45.151 (is this the mailing list server?) because it is listed on spamcop (although a quick check of spamcop shows that isn't

RE: Execute something when I enter in a directory

2006-09-05 Thread Chuck Mason
While I'm still new here, I would like to share my version based on Yakov's. Below uses \\ directory separator so this will not work on any *nix. I could make it more os-independent by doing an `if' and `let cmdsep=whatever', but I'm positive there's a better way to do it. Or maybe there's just

Re: [help?] ezmlm warning

2006-09-05 Thread Russell Bateman
I get these all the time and, as far as I can tell, they are somewhat meaningless to me (maybe they mean something to vim list management) since, if I ignore them, I don't seem to be subject to any adverse consequences: I seem still to get the mail threads. Russ Max Dyckhoff wrote: Has

Re: Search and replace as per format

2006-09-05 Thread Charles E Campbell Jr
Srinivas Rao. M wrote: Hi Vimmers, I am tasked to replace the pattern log(module_name, LOG_LEVEL_DEBUG, The Value of status=%d message, status); to log(module_name, LOG_LEVEL_DEBUG, %s:The Value of status=%d message,__FUNCTION__, status); This pattern is appearing in hundreds of source

Re: Search and replace as per format

2006-09-05 Thread Tim Chase
I am tasked to replace the pattern log(module_name, LOG_LEVEL_DEBUG, The Value of status=%d message, status); to log(module_name, LOG_LEVEL_DEBUG, %s:The Value of status=%d message,__FUNCTION__, status); Well, with unknown line-breaks, and not knowing which pieces are subject to change,

Re: Execute something when I enter in a directory

2006-09-05 Thread A.J.Mechelynck
Andrea Spadaccini wrote: Hello vimmers, I'd like to load some settings when I enter in a directory, like for instance setting makeprg. Is there a way to do it? Thanks in advance from a lurker! :) 'makeprg' is a global-local option. Maybe the other ones you want to set are also buffer-local

Re: bug in confirm() and default option

2006-09-05 Thread Bram Moolenaar
Benji Fisher wrote: $ vim :echo confirm(Save changes?, Yes\nNo\nCancel, 0) user types CR 0 :gui :echo confirm(Save changes?, Yes\nNo\nCancel, 0) user types CR 1 I did it that way to make sure that I was actually using the same binary with and without the GUI

un-subscribe me from list please!

2006-09-05 Thread Xiaoshen Li
Hi, Could anybody on the list help me un-subscribe from vim mailing list? Thank you very much.

Re: un-subscribe me from list please!

2006-09-05 Thread Tim Chase
Could anybody on the list help me un-subscribe from vim mailing list? Thank you very much. Just send a message from the account with which you subscribed and are responding/posting ([EMAIL PROTECTED]) to [EMAIL PROTECTED] -tim

keymapping problem

2006-09-05 Thread Bob Self
I'm running the current version of Ubuntu and can't get S-Insert or C-Insert to work but F7 and F8 work fine. I have this in my .vimrc: if has(xterm_clipboard) vnoremap F7 +y nmap F8 :set pasteCR+p:set nopasteCR`] imap F8 ESC:set pasteCR+p:set nopasteCR`]i I seem to have

Re: keymapping problem

2006-09-05 Thread A.J.Mechelynck
Bob Self wrote: I'm running the current version of Ubuntu and can't get S-Insert or C-Insert to work but F7 and F8 work fine. I have this in my .vimrc: if has(xterm_clipboard) vnoremap F7 +y nmap F8 :set pasteCR+p:set nopasteCR`] imap F8 ESC:set pasteCR+p:set

Re: vim 7 errors

2006-09-05 Thread Bram Moolenaar
Paul van Erk wrote: I have weird matching pairs erros. It seems vim tries to match ; at the end of lines. The result is: Error detected while processing function SNR20_Highlight_Matching_Pair: line 38: E684: list index out of range: 11 After that I have to ESC like mad to get out of

Re: vim 7 errors

2006-09-05 Thread A.J.Mechelynck
Paul van Erk wrote: Hi, I have weird matching pairs erros. It seems vim tries to match ; at the end of lines. The result is: Error detected while processing function SNR20_Highlight_Matching_Pair: line 38: E684: list index out of range: 11 After that I have to ESC like mad to get out of

Re: keymapping problem

2006-09-05 Thread A.J.Mechelynck
Bob Self wrote: On Tue, Sep 05, 2006 at 10:51:07PM +0200, A.J.Mechelynck wrote: Depending on your termcap and/or on your windowmanager, some special key may not reach Vim. To check if Vim perceives Shift-Insert and Ctrl-Insert, do the following: 1. Open an empty buffer, e.g. with :new 2. Hit

Re: PHP omni-completion, PHP objects

2006-09-05 Thread Mikolaj Machowski
Had to got message from Yahoo Groups, original post was lost somewhere: with vim7's omni-completion how do you call/get functions/variables relating to a specific class? $object = new HTML_QuickForm(); $object- And then after you type - how do i call for completions only relating to the

Re: vim 7 errors

2006-09-05 Thread Paul van Erk
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 any problems. Does anyone know

Re: vim 7 errors

2006-09-05 Thread Benji Fisher
On Wed, Sep 06, 2006 at 01:03:04AM +0200, 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

Re: Smarter Indent (an odd problem)

2006-09-05 Thread François Pinard
[Benji Fisher] 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,

Re: bug in confirm() and default option

2006-09-05 Thread Hari Krishna Dara
On Tue, 5 Sep 2006 at 3:38pm, Bram Moolenaar wrote: Benji Fisher wrote: On Sun, Sep 03, 2006 at 11:54:11AM -0700, Hari Krishna Dara wrote: On Sun, 3 Sep 2006 at 8:21pm, Bram Moolenaar wrote: I have tried the win32 console version and it works properly there. Do you mean

Re: Execute something when I enter in a directory

2006-09-05 Thread Luc Hermitte
* On Tue, Sep 05, 2006 at 09:51:31AM -0700, Chuck Mason [EMAIL PROTECTED] wrote: While I'm still new here, I would like to share my version based on Yakov's. Below uses \\ directory separator so this will not work on any *nix. Use instead match on '[/\\]', or fnamemodify() I could make it

Question about directory browse

2006-09-05 Thread meilin
hi everyone When I browse directory with vim 7.0 (with out gui),I want to edit a file while vsplit the window.so I just move curse to the file I want then press v,but there is a little probem,the new windows always split to the left.even I set the option spr. I want it split to the right. anyone

Yanking multi-line pattern matches

2006-09-05 Thread Druce, Richard
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 command to do this? Cheers, Richard.

Re: Question about directory browse

2006-09-05 Thread A.J.Mechelynck
meilin wrote: hi everyone When I browse directory with vim 7.0 (with out gui),I want to edit a file while vsplit the window.so I just move curse to the file I want then press v,but there is a little probem,the new windows always split to the left.even I set the option spr. I want it split to

matchparen tweak (was: vim 7 errors)

2006-09-05 Thread Benji Fisher
On Wed, Sep 06, 2006 at 01:20:13AM +0200, A.J.Mechelynck wrote: It's supposed to treat ? and : on the one hand, and = and ; on the other hand, as paired brackets. However, the matchparen plugin uses a rather elementary algorithm to split 'matchpairs' into individual items: any colons and

Re: Subversion Access

2006-09-05 Thread Devin Weaver
I still can't figure out what it was I even tried to upgrade my router's firmware. Anyway I worked around it like Bill suggested to repeat to procedure (I think it was 2 or three times) and it finished. Thanks.

quick and dirty compile

2006-09-05 Thread Sibin P. Thomas
Hi, Could someone let me know how to quickly compile my current buffer? I want a key map like nmap F5 x to do -- gcc -o current_file.o current_file.c also another map to make an executable, like nmap F5 x to do -- gcc -o current_file current_file.c Also it would be convenient if this

Re: quick and dirty compile

2006-09-05 Thread Yegappan Lakshmanan
Hi, On 9/5/06, Sibin P. Thomas [EMAIL PROTECTED] wrote: Hi, Could someone let me know how to quickly compile my current buffer? I want a key map like nmap F5 x to do -- gcc -o current_file.o current_file.c Try using the following command: nnoremap F5 :!gcc -o %:p:r.o %CR also

Re: Yanking multi-line pattern matches

2006-09-05 Thread Hari Krishna Dara
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 command to do this?

RE: Execute something when I enter in a directory

2006-09-05 Thread Sibin P. Thomas
Use :se exrc in ur _vimrc file And then create a _vimrc file local to the directory in question. Check help for more details. Regards, Sibin -Original Message- From: Andrea Spadaccini [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 3:17 PM To: vim@vim.org Subject: Execute