RE: Folding Perl POD

2007-04-04 Thread Eric Leenman
From: Bill Moseley [EMAIL PROTECTED] [...] Is it possible to fold the =head1 or =item sections within a given =head1 section? -- Bill Moseley [EMAIL PROTECTED] I'm not sure what you want. I don't know PERL But this plugin helpt me defining my folds:

Re: Esperanto dictionary

2007-04-04 Thread Hugh Sasse
On Wed, 4 Apr 2007, Cyril Slobin wrote: Seems like this letter doesn't reached the list. Reposting. I'm sorry if it appears twice. On 4/2/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Well, I suppose both uppercase and titlecase should be supported then. Cxu ne? CXU VERE NE?

Re: how to replace ESC to some other key?

2007-04-04 Thread Winfred Lu
It is no recommended to map Esc to CapsLock, because you have to figure out different mapping ways for different environments. Try Ctrl-[, Esc is equivalent to Ctrl-[. or, FYR, I myself use imap jj Esc instead.

highlighting errors

2007-04-04 Thread Lionel Flandin
Hi everyone, I'm trying to find the command that would find the next error in a file. For instance the following code contains a typo, how can one find it ? - #include stdio.h int main(int argc, char **argv) { printf(Hello world!\n); ]

wish: show search progress on slow searches

2007-04-04 Thread Yakov Lerner
Wish: when search is slow, show the progress line number every second on the bottom line (like, 12345 of 9). Maybe this can be done with plugin, I'm not sure. Maybe simply status line can be refreshed once in a second, temporarily setting line number to the current search position. Some

Re: case of very slow regex search

2007-04-04 Thread Yakov Lerner
On 4/3/07, Peter Hodge [EMAIL PROTECTED] wrote: --- Yakov Lerner [EMAIL PROTECTED] wrote: I use sometimes the regex that finds paragraphs containing given words w1,w2,... in any order ( I define paragraph as separated by lines, \n\n). I use the pattern like this: (two-word example, w1 and

Placement of users _vimrc in a MSWindows system.

2007-04-04 Thread John R. Culleton
I am writing a package that requires an MSWin user to download and install TeX, Vim and my software bundle. That bundle will contain among other things a special _vimrc or _gvimrc file with some F key designations. The problem is I don't know where to put the _vimrc on the user's system via a

Re: highlighting errors

2007-04-04 Thread Yakov Lerner
On 4/4/07, Lionel Flandin [EMAIL PROTECTED] wrote: Hi everyone, I'm trying to find the command that would find the next error in a file. For instance the following code contains a typo, how can one find it ? - #include stdio.h int main(int argc,

Re: Question about paragraphs: make lines containing only whitespace characters a paragraph separator

2007-04-04 Thread fREW
On 4/3/07, Thomas [EMAIL PROTECTED] wrote: Maybe I misunderstand the problem but can't you change those lines with just blanks to empty lines? Sure I can remove the whitespace characters. But I'd rather simply not have to care about them (but this is filetype-dependent because for some

Re: Question about paragraphs: make lines containing only whitespace characters a paragraph separator

2007-04-04 Thread Thomas
autocmd BufRead,BufWrite * if ! bin | silent! %s/\s\+$//ge | endif Thanks. I think this is about what I was looking for. Regards, Thomas.

my map only works sometimes

2007-04-04 Thread ben lieb
The following map is used to do add span tags to highlighted text in-line. My problem is that it only works sometimes, and I don't know why. :map ,bb cCRCRESCkpIspanESCA/spanESCkJJ The map works by cutting the highlighted text, putting it on its own line, adding the tag to the front and the end

Re: my map only works sometimes

2007-04-04 Thread Tim Chase
:map ,bb cCRCRESCkpIspanESCA/spanESCkJJ Any thoughts on why this only works sometimes? I can't isolate what conditions bring it about. What are the results when it doesn't work? It looks like you're actually rejoining the lines, so it's odd to add the CRs just to remove them. Other items

Re: my map only works sometimes

2007-04-04 Thread Yakov Lerner
On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: The following map is used to do add span tags to highlighted text in-line. My problem is that it only works sometimes, and I don't know why. :map ,bb cCRCRESCkpIspanESCA/spanESCkJJ The map works by cutting the highlighted text, putting it on its own

Re: how to replace ESC to some other key?

2007-04-04 Thread Tom Purl
On Wed, April 4, 2007 10:55 am, wangxu wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? I don't know how you would do it with the Caps Lock key, but here's what I put in my vimrc to do it with the command key: let mapleader = , HTH!

Re: how to replace ESC to some other key?

2007-04-04 Thread Yakov Lerner
On 4/4/07, wangxu [EMAIL PROTECTED] wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? I heard some people use Tab as a substitute for Esc. Weird. But it's easier to do in platform-independent way. Yakov

RE: quick query about moving a selection

2007-04-04 Thread Gene Kwiecinski
i know with i can move a selection to the right by one indent, how can i move a selection just one space ? Well, if you want to move by one indent, you can :set sw=1 ts=1 et which will then make and indent by one space (not one tab) or, you can I might've just forgotten to set sw=2,

Re: my map only works sometimes

2007-04-04 Thread ben lieb
Yakov Lerner wrote: On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: The following map is used to do add span tags to highlighted text in-line. My problem is that it only works sometimes, and I don't know why. :map ,bb cCRCRESCkpIspanESCA/spanESCkJJ The map works by cutting the highlighted

Re: Vim memory leak

2007-04-04 Thread Yakov Lerner
On 4/3/07, Max Dyckhoff [EMAIL PROTECTED] wrote: My instance of vim (gvim on Windows) appears to have a memory leak, which makes me sad. Is this a common thing for everyone, or is there something in my setup which might be causing it? It's pretty serious. When I start gvim and load my

Re: my map only works sometimes

2007-04-04 Thread Yakov Lerner
On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: The following map is used to do add span tags to highlighted text in-line. My problem is that it only works sometimes, and I don't know why. :map ,bb cCRCRESCkpIspanESCA/spanESCkJJ

Re: my map only works sometimes

2007-04-04 Thread Yakov Lerner
On 4/4/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/4/07, ben lieb [EMAIL PROTECTED] wrote: The following map is used to do add span tags to highlighted text in-line. My problem is that it only works sometimes, and I don't

Re: Placement of users _vimrc in a MSWindows system.

2007-04-04 Thread James Longstreet
On Apr 4, 2007, at 7:21 AM, John R. Culleton wrote: I am writing a package that requires an MSWin user to download and install TeX, Vim and my software bundle. That bundle will contain among other things a special _vimrc or _gvimrc file with some F key designations. The problem is I don't know

splitting buffer content to several files

2007-04-04 Thread j.hofmann
Hello, I have a buffer consisting of many create view ... ... go blocks. How can I write these blocks somehow efficient to different files? Thank You Joachim ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more

Re: splitting buffer content to several files

2007-04-04 Thread Tim Chase
I have a buffer consisting of many create view ... ... go blocks. How can I write these blocks somehow efficient to different files? This presumes a little stability in your source (that there's consistent spacing/indenting, that case is consistent, that the view-name immediatedly follows

fold acting strangely

2007-04-04 Thread Lev Lvovsky
I'm experiencing a problem when folding visual blocks - if I have a section folded directly above another section that I want to fold, they end up merging once I fold the second section, sometimes they even add unfolded text to the fold - am I doing something wrong? thanks! -lev

Re: fold acting strangely

2007-04-04 Thread Tim Chase
I'm experiencing a problem when folding visual blocks - if I have a section folded directly above another section that I want to fold, they end up merging once I fold the second section, sometimes they even add unfolded text to the fold - am I doing something wrong? It sounds like your folds

Re: fold acting strangely

2007-04-04 Thread Lev Lvovsky
On Apr 4, 2007, at 9:13 AM, Tim Chase wrote: The visual indicator of the fold-column can help you prevent overlapping sections, which in turn, should help you avoid the behavior you see. Very cool - I didn't have a good idea of what was going on with folding until I turned this on -

Re: bracket completion

2007-04-04 Thread A.J.Mechelynck
Greg Fitzgerald wrote: On Tue, Apr 03, 2007 at 04:51:46PM -0400, Karl Guertin wrote: On 4/3/07, Panos Laganakos [EMAIL PROTECTED] wrote: Although, I'd prefer if I could use tab to move outside, instead of the corresponding closing bracket char. This should be fairly simple to add. I won't

Re: highlighting errors

2007-04-04 Thread Lionel Flandin
GREAT ! thank you it works just fine. Lionel @ 14:58 04/04/2007, Yakov Lerner Wrote :wq! On 4/4/07, Lionel Flandin [EMAIL PROTECTED] wrote: Hi everyone, I'm trying to find the command that would find the next error in a file. For instance the following code contains

Re: quick query about moving a selection

2007-04-04 Thread Matthew Winn
On Wed, 4 Apr 2007 10:23:49 -0400, Gene Kwiecinski [EMAIL PROTECTED] wrote: i know with i can move a selection to the right by one indent, how can i move a selection just one space ? Well, if you want to move by one indent, you can :set sw=1 ts=1 et which will then make and indent

Re: bracket completion

2007-04-04 Thread Greg Fitzgerald
On Wed, Apr 04, 2007 at 07:14:11PM +0200, A.J.Mechelynck wrote: Greg Fitzgerald wrote: On Tue, Apr 03, 2007 at 04:51:46PM -0400, Karl Guertin wrote: On 4/3/07, Panos Laganakos [EMAIL PROTECTED] wrote: Although, I'd prefer if I could use tab to move outside, instead of the corresponding

RE: quick query about moving a selection

2007-04-04 Thread Gene Kwiecinski
I might've just forgotten to set sw=2, but I noticed that when I was editing a file and didn't want nested tabs being tabbed over to pretty much the right side of the screen, one little '' would tab it over 4 tabs (for ts=2) instead of just 1. Thought that was odd. You must have had shiftwidth

Re: Vim memory leak

2007-04-04 Thread Yakov Lerner
On 4/4/07, Max Dyckhoff [EMAIL PROTECTED] wrote: My instance of vim (gvim on Windows) appears to have a memory leak, which makes me sad. Is this a common thing for everyone, or is there something in my setup which might be causing it? It's pretty serious. When I start gvim and load my

RE: Vim memory leak

2007-04-04 Thread Max Dyckhoff
On 4/4/07, Yakov Lerner [EMAIL PROTECTED] wrote: Max, I recalled two more things. Is your 'hidden' option set ? If it's set, vim *will* grow. With 'hidden' set, vim will keep in memory much data about old buffers. If you want to minimize memory, first thing you'd do is ':set nohidden'. To

Need advice on pattern matching using match()

2007-04-04 Thread Michael Klier
Hi everybody, I have a little problem with pattern matching using Vims' match() function. I`ve wrote a syntax highlighting script for a certain Wiki Syntax, now I want to check via autocommand if the edited text file is a Wiki file: autocmd BufEnter *.txt call IsWikiSyntax() The function

Re: Executing vimfunctions in background

2007-04-04 Thread A.J.Mechelynck
Chuck Mason wrote: Well, that sample 'myFunc' was just that- a sample. Imagine now, that it doesn't depend on cursor location but on a daemon running on your system. Chuck There are also the CursorHold and CursorHoldI autocommands (q.v.), which are triggered _once_ when the keyboard has been

Re: Need advice on pattern matching using match()

2007-04-04 Thread Tim Chase
if match(getline(1,20),^ \{0,1}\(=\{2,6}\)[^=]\+\1 *$) = 0 The pattern used in the match() call is the same as in the syntax highlighting script. My guess is that it's something like an escaping problem. You're using double-quotes which are a little more finicky about

Re: Vim memory leak

2007-04-04 Thread Yakov Lerner
On 4/4/07, Max Dyckhoff [EMAIL PROTECTED] wrote: On 4/4/07, Yakov Lerner [EMAIL PROTECTED] wrote: Max, I recalled two more things. Is your 'hidden' option set ? If it's set, vim *will* grow. With 'hidden' set, vim will keep in memory much data about old buffers. If you want to minimize

RE: Executing vimfunctions in background

2007-04-04 Thread Chuck Mason
Doc states, Not re-triggered until the user has pressed a key (i.e. doesn't fire every 'updatetime' ms if you leave Vim to make some coffee. :) So this isn't going to work. How do I put in a feature request for an autocmd that is trigged every 'repeattime' repeatedly? Chuck -Original

Re: Spellcheck HTML files with syntax on?

2007-04-04 Thread A.J.Mechelynck
Mitch Wiedemann wrote: I am using Vim 7.0* and I mostly edit HTML files. I've noticed the on-the-fly spell checking works great in regular .txt files and such, but I can't get it working in HTML files without turning the :syntax off. Is there a way to get on-the-fly spellchecking with syntax

Re: [SOLVED] Need advice on pattern matching using match()

2007-04-04 Thread Michael Klier
Tim Chase wrote: if match(getline(1,20),^ \{0,1}\(=\{2,6}\)[^=]\+\1 *$) = 0 The pattern used in the match() call is the same as in the syntax highlighting script. My guess is that it's something like an escaping problem. You're using double-quotes which are a little more finicky

Re: bracket completion

2007-04-04 Thread A.J.Mechelynck
Greg Fitzgerald wrote: [...] I did some more termcap tests as well as on other systems, this time FreeBSD. Still the same issue. So i'm starting to wondering if it's really termcap if 3 linux boxes, openbsd, and freebsd are having the same problem. Although if i am in console with term set to

RE: Executing vimfunctions in background

2007-04-04 Thread dcuaron
Mr. Yikihiro Nakadaira supplied the following to the list a couple months ago. SNIP In Vim7 feedkeys() can be used. autocmd CursorHold * call Timer() function! Timer() echo strftime(%c) let K_IGNORE = \x80\xFD\x35internal key code that is ignored call feedkeys(K_IGNORE) endfunction

using command gf or map to other key for matlab function

2007-04-04 Thread frank wang
Hi, I am a lot of matlab function files. the function name is the same as file name without the file extension .m. In the Vim, if I use command gf trying to find the file under the cursor, it could not find it since it missed the extension .m. Could someone help me to create a map to solve this

Re: OT: Reply-To munging [was: [SOLVED] Need advice on pattern matching using match()]

2007-04-04 Thread Jean-Rene David
* Michael Klier [2007.04.04 17:30]: I am sure this has been questioned before but why is the Reply-To: header field not set via the mailing-list? Short answer: because it makes it more difficult to reply to the author without making it easier to reply to the list. Long answer:

RE: Vim memory leak

2007-04-04 Thread Max Dyckhoff
On 4/4/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/4/07, Max Dyckhoff [EMAIL PROTECTED] wrote: I do have 'hidden' set, because I like to keep things around. :ls! shows that I currently have about 550 buffers open. we do have a large code base! Then get another 1-2 GB of RAM. It's not

RE: bracket completion

2007-04-04 Thread Waters, Bill
I'll just add a statement enabling this for certain languages Can someone provide an example of how to enable this for a certain language? I assume that it is a condition around the remap in your vimrc?? -Original Message- From: Waters, Bill Sent: Monday, April 02, 2007 1:42 PM To:

:args - buffer list mapping issue

2007-04-04 Thread Chuck Mason
A coworker (who is not on VIM Mailing List) has asked me to forward this issue here. Is this already known about or what do we do to submit a bug? I have verified that it happens on my build of vim. His repro steps are below. My :version is VIM - Vi IMproved 7.0 (2006 May 7, compiled May 7

Re: OT: Reply-To munging [was: [SOLVED] Need advice on pattern matching using match()]

2007-04-04 Thread Michael Klier
Jean-Rene David wrote: * Michael Klier [2007.04.04 17:30]: I am sure this has been questioned before but why is the Reply-To: header field not set via the mailing-list? Short answer: because it makes it more difficult to reply to the author without making it easier to reply to the list.

Re: bracket completion

2007-04-04 Thread Karl Guertin
On 4/4/07, Waters, Bill [EMAIL PROTECTED] wrote: Can someone provide an example of how to enable this for a certain language? I assume that it is a condition around the remap in your vimrc?? The easiest way to do language-specific customizations is to create language.vim in your

Re: using command gf or map to other key for matlab function

2007-04-04 Thread Gary Johnson
On 2007-04-04, frank wang [EMAIL PROTECTED] wrote: Hi, I am a lot of matlab function files. the function name is the same as file name without the file extension .m. In the Vim, if I use command gf trying to find the file under the cursor, it could not find it since it missed the extension

Re: Vim memory leak

2007-04-04 Thread A.J.Mechelynck
Max Dyckhoff wrote: [...] I do have 'hidden' set, because I like to keep things around. :ls! shows that I currently have about 550 buffers open. I know this seems like a lot, but we do have a large code base! [...] Keeping things around is one thing, keeping them in memory is another. By

RE: Vim memory leak

2007-04-04 Thread Max Dyckhoff
Thanks Tony, A.J.Mechelynck wrote: Keeping things around is one thing, keeping them in memory is another. By using :set hidden you _tell_ Vim to keep in memory the _whole data_ of every single buffer you visited during the current session, which IMHO is a little overdoing it. By setting

Folding in vim helpfiles

2007-04-04 Thread Ian Tegebo
After looking at foldutil.vim and AutoFold.vim I'm not sure what the best way is going to be for exploiting the outline format of helpfiles to automatically create folds. Has anyone done this before? Ideally, I'd like to use this with the foldlist.vim plugin to have something like a left-side

Re: :args - buffer list mapping issue

2007-04-04 Thread A.J.Mechelynck
Chuck Mason wrote: A coworker (who is not on VIM Mailing List) has asked me to forward this issue here. Is this already known about or what do we do to submit a bug? I have verified that it happens on my build of vim. His repro steps are below. My :version is VIM - Vi IMproved 7.0 (2006 May

Python crash

2007-04-04 Thread Chuck Mason
This crashes my vim: function! PyCrash() python EOF import sys sys.path.append(c:\\python23\\lib) from threading import Thread import vim def f(): vim.command(copen) t = Thread(target=f) t.start() EOF endfunc crash! call PyCrash() Does anyone know why? I mean, granted vim.command

Re: how to replace ESC to some other key?

2007-04-04 Thread panshizhu
Yakov Lerner [EMAIL PROTECTED] 写于 2007-04-04 22:22:43: On 4/4/07, wangxu [EMAIL PROTECTED] wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? I heard some people use Tab as a substitute for Esc. Weird. But it's easier to do in

Re: how to replace ESC to some other key?

2007-04-04 Thread wangxu
but in this situation,is there any way to auto-indent *.py? [EMAIL PROTECTED] wrote: Yakov Lerner [EMAIL PROTECTED] 写于 2007-04-04 22:22:43: On 4/4/07, wangxu [EMAIL PROTECTED] wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example?

Re: Vim memory leak

2007-04-04 Thread A.J.Mechelynck
Max Dyckhoff wrote: Thanks Tony, A.J.Mechelynck wrote: Keeping things around is one thing, keeping them in memory is another. By using :set hidden you _tell_ Vim to keep in memory the _whole data_ of every single buffer you visited during the current session, which IMHO is a little overdoing

Re: bracket completion

2007-04-04 Thread Winfred Lu
2007/4/3, Charles E Campbell Jr [EMAIL PROTECTED]: Here's one: http://vim.sourceforge.net/scripts/script.php?script_id=1269 It is very useful, thank you.

Re: how to replace ESC to some other key?

2007-04-04 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Yakov Lerner [EMAIL PROTECTED] 写于 2007-04-04 22:22:43: On 4/4/07, wangxu [EMAIL PROTECTED] wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? I heard some people use Tab as a substitute for Esc. Weird. But it's