Re: Python 2.5 support

2006-09-22 Thread Bram Moolenaar
Sumner Hayes wrote: Python 2.5 has tightened up the way it handles memory allocation, and there's a mis-match in the way that if_python.c handles memory allocation which worked with earlier Python versions but causes vim to seg-fault with 2.5. Essentially, PyMem_DEL shouldn't be paired

syntax. Contained items should not contribute to highlight outside of a containing keepend item highlighting area

2006-09-22 Thread Ilya Bobir
Hello. I'm continuing my investigation on Vim's syntax highlight for the following syntax rules: :syn cluster Top contains=Block,String,Identifier :syn region Block start=+{+ end=+}+ keepend extend [EMAIL PROTECTED] :syn region String start=++ end=++ contains=Identifier :syn region Identifier

Re: Convert2HTML Again

2006-09-22 Thread Edward L. Fox
Hi developers, On 9/22/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Edd - I have spoken to your development team and I think we have come to a conclusion. I draw your attention to this thread: http://tech.groups.yahoo.com/group/vimdev/message/44853 Lemme know your opinions. I haven't

Ragged-end block: actual behaviour conflicts with help

2006-09-22 Thread A.J.Mechelynck
From *visual.txt*For Vim version 7.0. Last change: 2006 Apr 24 second paragraph under :help v_$ (lines 176-179). This help tag is about using $ in visual-block mode, which produces a block-visual selection with a ragged right side. ---8--- For moving the end of the block many commands

--enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Christian Ebert
Hello, I wanted to ask this for quite a long time (Vim 6.4 actually): When I compile with --enable-pythoninterp I get the following warnings: $ head -n5 vim-make.log Starting make in the src directory. If there are problems, cd to the src directory and run make there cd src gnumake first

Re: [BUG] with 'scrolloff' and Visual mode

2006-09-22 Thread Benji Fisher
I agree. I confirmed this odd behavior with $ gvim -u NONE -N :set so=4 and adding 100 lines to the buffer. As you say, for Step 1 it is important to click and drag; entering Visual mode with v or double-clicking does not reproduce the bug. For Step 2, I simply used H (without the

Re: ctrl-v after a o command

2006-09-22 Thread Benji Fisher
On Thu, Sep 21, 2006 at 07:37:47PM -0700, lll wrote: Hello: I'm using VIM 7.0 in windows OS. Whenever I paste something using ctrl-v after typing o to insert on next line, the pasted string would not follow the indentation of the curser. It would paste the string from the beginning of the

SR

2006-09-22 Thread Eric Leenman
Hi I have a file where I deleted all lines that don't contain a certain pattern For example I want to delete all lines that don't contain XXX and YYY. Before: [start of file] abcde XXX fghij YYY 12345 AAA 67890 BBB klmno XXX pqrst YYY 09876 XXX 54321 BBB *()- XXX ,./;' YYY [end of file]

Re: SR

2006-09-22 Thread Jürgen Krämer
Hi, Eric Leenman schrieb: I have a file where I deleted all lines that don't contain a certain pattern For example I want to delete all lines that don't contain XXX and YYY. Before: [start of file] abcde XXX fghij YYY 12345 AAA 67890 BBB klmno XXX pqrst YYY 09876 XXX 54321 BBB

RE: SR

2006-09-22 Thread Eric Leenman
I made a typo After should be: After: [start of file] abcde XXX fghij YYY klmno XXX pqrst YYY *()- XXX ,./;' YYY [end of file] Rgds, Eric From: Eric Leenman [EMAIL PROTECTED] To: vim@vim.org Subject: SR Date: Fri, 22 Sep 2006 11:59:59 + Hi I have a file where I deleted all lines that

Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Benji Fisher
On Fri, Sep 22, 2006 at 09:53:06AM +0200, Christian Ebert wrote: Hello, I wanted to ask this for quite a long time (Vim 6.4 actually): When I compile with --enable-pythoninterp I get the following warnings: $ head -n5 vim-make.log Starting make in the src directory. If there are

Re: :helpgrep and 'ignorecase'

2006-09-22 Thread Bram Moolenaar
Yakov Lerner wrote: Looks like :helpgrep does not take 'ignorecase' setting into account. Is this by design ? :set ignorecase :helpgrep bufwrite E480: No match: bufwrite :helpgrep \cbufwrite ... now it finds matches ... 'ignorecase' is global, making it very unclear why

Re: Building Vim 7 with Python

2006-09-22 Thread Bram Moolenaar
Nick Deubert wrote: I am on a system where I don't want to affect the installed packages so first I successfully built and installed python 2.5 in a directory owned by me and kept the build directory around as well. Next I put the python bin install directory on my PATH so that it would find

Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Bram Moolenaar
Christian Ebert wrote: I wanted to ask this for quite a long time (Vim 6.4 actually): When I compile with --enable-pythoninterp I get the following warnings: $ head -n5 vim-make.log Starting make in the src directory. If there are problems, cd to the src directory and run make there

Re: :s/pattern Undocumented feature?

2006-09-22 Thread Bram Moolenaar
Bill McCarthy wrote: On Wed 20-Sep-06 1:08pm -0600, Tim Chase wrote: I hadn't seen a reply to this fly by, so I thought I'd let you know it wasn't entirely ignored :) It appears that :s/pattern produces the same result as :s/pattern//. I couldn't find that behavior in the docs.

Re: :helpgrep and 'ignorecase'

2006-09-22 Thread Yakov Lerner
On 9/22/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Looks like :helpgrep does not take 'ignorecase' setting into account. Is this by design ? :set ignorecase :helpgrep bufwrite E480: No match: bufwrite :helpgrep \cbufwrite ... now it finds matches

sorting lines on lenght of characters

2006-09-22 Thread Eric Leenman
Hi, Is it possible to sort lines on line length? Shortes firsts, longest last? If so how do you do this? Rgds, Eric _ Try the new Live Search today! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-usFORM=WLMTAG

Re: S

2006-09-22 Thread Yakov Lerner
On 9/22/06, Eric Leenman [EMAIL PROTECTED] wrote: Hi I have a file where I deleted all lines that don't contain a certain pattern For example I want to delete all lines that don't contain XXX and YYY. Before: [start of file] abcde XXX fghij YYY 12345 AAA 67890 BBB klmno XXX pqrst YYY 09876

Re: sorting lines on lenght of characters

2006-09-22 Thread Yakov Lerner
On 9/22/06, Eric Leenman [EMAIL PROTECTED] wrote: Hi, Is it possible to sort lines on line length? Shortes firsts, longest last? If so how do you do this? Are you on Windows, or on LInux/unix/OXS ? Yakov

Re: sorting lines on lenght of characters

2006-09-22 Thread Tim Chase
Is it possible to sort lines on line length? Shortes firsts, longest last? If so how do you do this? This is a common use of the decorate-sort-undecorate pattern. You can do something like: :%s/^/\=strlen(getline('.')).':' :%sort n :%s/^[^:]*: In non-vim7 on a *nix platform, that second

Re: sorting lines on lenght of characters

2006-09-22 Thread Jürgen Krämer
Hi, Eric Leenman wrote: Is it possible to sort lines on line length? Shortes firsts, longest last? If so how do you do this? I would put the line lengths at the front of each line with leading zeroes, sort the buffer, and remove the line lengths. With Vim 7.0 you can do this with the

Re: :s/pattern Undocumented feature?

2006-09-22 Thread Tim Chase
I scoured through the help, looking in a multitude of places I deemed sensible, and couldn't find anything documented either. Thanks, Tim, for confirming this feature. Bram, could you please add a note to the help for ':s' that documents this feature? I thought this was explained somewhere,

Re: :helpgrep and 'ignorecase'

2006-09-22 Thread Yakov Lerner
On 9/22/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/22/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Looks like :helpgrep does not take 'ignorecase' setting into account. Is this by design ? :set ignorecase :helpgrep bufwrite E480: No match: bufwrite

Re: SR

2006-09-22 Thread Charles E Campbell Jr
Eric Leenman wrote: I have a file where I deleted all lines that don't contain a certain pattern For example I want to delete all lines that don't contain XXX and YYY. :g/PATTERN/cmd executes the given command on all lines containing the PATTERN. :v/PATTERN/cmd executes the given command

Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Christian Ebert
* Benji Fisher on Friday, September 22, 2006 at 08:19:12 -0400: On Fri, Sep 22, 2006 at 09:53:06AM +0200, Christian Ebert wrote: Linking: gcc -L/sw/lib -L/usr/local/lib -o vim -lncurses -liconv -L/sw/lib -L/usr/local/lib

Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Christian Ebert
* Bram Moolenaar on Friday, September 22, 2006 at 14:24:09 +0200: The configure script has a specific check for not adding -pthread on Mac OS/X. It looks like you used the --disable-darwin argument Yes: ./configure --prefix=/usr/local --with-features=huge \ --enable-multibyte

Counting when modifiable is off?

2006-09-22 Thread Tim Chase
In Vim7, the :s command added a n flag to not actually perform the substitute, but just report the number of changes made. However, it seems that if 'modifiable' is off, one can't do something like :%s/foo/bar/gn to count items in the non-modifiable file, as it gives E21: Cannot

Block indent

2006-09-22 Thread tnas
Hi folks, I'm a new member and I have a bit question: How can I indent a code block? How can I configure the .vimrc for this? Thanks in advance. Regards. -- Thiago Nascimento #!/usr/bin/perl $_=tMM naaCt Feocmama_itpUilucoGa;$_.=$1,print $2 while s/(..)(.)//;print substr$_,1,1;

Re: :helpgrep and 'ignorecase'

2006-09-22 Thread Greg Dunn
On 9/22/06, Yakov Lerner [EMAIL PROTECTED] wrote: Am I, like, alone in the Universe to use/have 'set ignorecase' by default ? Yakov I'm an ignorecaser too. It gets in the way a bit with C omni-completion, though. Is there an easy way (i.e. an option... I don't want to muck with the

Re: :helpgrep and 'ignorecase'

2006-09-22 Thread Russell Bateman
I've been an ignorecaser too (for 20 years) and share the same concerns. Greg Dunn wrote: On 9/22/06, Yakov Lerner [EMAIL PROTECTED] wrote: Am I, like, alone in the Universe to use/have 'set ignorecase' by default ? Yakov I'm an ignorecaser too. It gets in the way a bit with C

Re: Block indent

2006-09-22 Thread Tim Chase
I'm a new member and I have a bit question: How can I indent a code block? Well, you omit detailing what language you're using, or what a code block looks like. Given the near universality of C-like languages, I'll make the assumption that these are blocks delimited by {...} The

Re: Counting when modifiable is off?

2006-09-22 Thread Bram Moolenaar
Tim Chase wrote: In Vim7, the :s command added a n flag to not actually perform the substitute, but just report the number of changes made. However, it seems that if 'modifiable' is off, one can't do something like :%s/foo/bar/gn to count items in the non-modifiable file, as

Re: :helpgrep and 'ignorecase'

2006-09-22 Thread Bill McCarthy
On Fri 22-Sep-06 8:44am -0600, Yakov Lerner wrote: On 9/22/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/22/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Looks like :helpgrep does not take 'ignorecase' setting into account. Is this by design ? :set

Single-File Vim?

2006-09-22 Thread Dmitriy Yamkovoy
Hi all, Is there a binary compiled for Windows which allows me to run Vim without any of the runtime files? Long story short, I want something I can keep online or on a USB key and just copy to the desktop of any computer I sit at. Thanks, -Dmitriy

Re: Single-File Vim?

2006-09-22 Thread Yakov Lerner
On 9/22/06, Dmitriy Yamkovoy [EMAIL PROTECTED] wrote: Hi all, Is there a binary compiled for Windows which allows me to run Vim without any of the runtime files? Long story short, I want something I can keep online or on a USB key and just copy to the desktop of any computer I sit at. I

Re: Single-File Vim?

2006-09-22 Thread Gary Johnson
On 2006-09-22, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/22/06, Dmitriy Yamkovoy [EMAIL PROTECTED] wrote: Hi all, Is there a binary compiled for Windows which allows me to run Vim without any of the runtime files? Long story short, I want something I can keep online or on a USB key and

Re: show matching bracket - the emacs way

2006-09-22 Thread Yakov Lerner
On 9/22/06, Kim Schulz [EMAIL PROTECTED] wrote: Hi Is there any way to get vim to show the line where the matching start bracket is placed (or the line above if line only contains bracket) whenever a closing bracket is pressed. e.g., if( foo == bar ) { bla bla } should show if( foo ==

Re: Single-File Vim?

2006-09-22 Thread Dmitriy Yamkovoy
Thanks, guys, that helps. I guess if I really want it to be a single file, I could try a self-extracting zip file. I'll tell you how that goes. -Dmitriy On 9/22/06, Gary Johnson [EMAIL PROTECTED] wrote: On 2006-09-22, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/22/06, Dmitriy Yamkovoy

Re: show matching bracket - the emacs way

2006-09-22 Thread Yakov Lerner
On 9/23/06, Kim Schulz [EMAIL PROTECTED] wrote: On Fri, 22 Sep 2006 23:50:43 +0300 Yakov Lerner [EMAIL PROTECTED] wrote: On 9/22/06, Kim Schulz [EMAIL PROTECTED] wrote: Hi Is there any way to get vim to show the line where the matching start bracket is placed (or the line above if line

copy paste file names from windows explorer

2006-09-22 Thread Hari Krishna Dara
I am wondering if it is possible to copy a file in the windows explorer (MS windows) and then access the filename(s) from vim/gvim. I know there are workarounds like dnd and sendto powertoy to send the filename to clipboard, but they are not that convenience, as they either require using the

Re: Single-File Vim?

2006-09-22 Thread Hari Krishna Dara
On Fri, 22 Sep 2006 at 4:05pm, Dmitriy Yamkovoy wrote: Hi all, Is there a binary compiled for Windows which allows me to run Vim without any of the runtime files? Long story short, I want something I can keep online or on a USB key and just copy to the desktop of any computer I sit at.

Re: ctrl-v after a o command

2006-09-22 Thread lll
Thanks Benji. This is the problem I'm having. Adding xBS solves the problem. Benji Fisher wrote: On Thu, Sep 21, 2006 at 07:37:47PM -0700, lll wrote: Hello: I'm using VIM 7.0 in windows OS. Whenever I paste something using ctrl-v after typing o to insert on next line, the pasted

Re: Single-File Vim?

2006-09-22 Thread A.J.Mechelynck
Dmitriy Yamkovoy wrote: Thanks, guys, that helps. I guess if I really want it to be a single file, I could try a self-extracting zip file. I'll tell you how that goes. -Dmitriy Don't reinvent the wheel: Steve Hall compiles, and distributes on SourceForge, self-extracting installers

Re: Single-File Vim?

2006-09-22 Thread A.J.Mechelynck
Hari Krishna Dara wrote: On Fri, 22 Sep 2006 at 4:05pm, Dmitriy Yamkovoy wrote: Hi all, Is there a binary compiled for Windows which allows me to run Vim without any of the runtime files? Long story short, I want something I can keep online or on a USB key and just copy to the desktop of any

sp *.c

2006-09-22 Thread Rodolfo Borges
:sp *.c gives me too many files (same with :e *.c) why not do a split for every file? (if there's no room, maybe then give the too many files error.) just .2 c$ -- Rodolfo Borges

Re: Single-File Vim?

2006-09-22 Thread Yakov Lerner
On 9/23/06, Mark Woodward [EMAIL PROTECTED] wrote: Hi all, On Fri, 22 Sep 2006 23:21:13 +0300 Yakov Lerner [EMAIL PROTECTED] wrote: On 9/22/06, Dmitriy Yamkovoy [EMAIL PROTECTED] wrote: Hi all, Is there a binary compiled for Windows which allows me to run Vim without any of the runtime

Re: copy paste file names from windows explorer

2006-09-22 Thread Hari Krishna Dara
On Sat, 23 Sep 2006 at 12:49am, Yakov Lerner wrote: On 9/23/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: I am wondering if it is possible to copy a file in the windows explorer (MS windows) and then access the filename(s) from vim/gvim. I know there are workarounds like dnd and sendto

Re: Single-File Vim?

2006-09-22 Thread Hari Krishna Dara
On Sat, 23 Sep 2006 at 1:46am, A.J.Mechelynck wrote: Hari Krishna Dara wrote: On Fri, 22 Sep 2006 at 4:05pm, Dmitriy Yamkovoy wrote: Hi all, Is there a binary compiled for Windows which allows me to run Vim without any of the runtime files? Long story short, I want something I can

Re: Single-File Vim?

2006-09-22 Thread A.J.Mechelynck
Mark Woodward wrote: [...] so would it be possible to have vim on a usb key without modifying environment variables? What I wouldn't give to be able to use vim at work! I've asked and they've told me to use notepad They've got no idea! or assume I don't. They may not be too far from the mark

Re: Single-File Vim?

2006-09-22 Thread A.J.Mechelynck
Yakov Lerner wrote: [...] Even this is easily fixable: There is some .bat script in vimruntime, which, if you run it, will register the explorer integration in the new place. I forgot the name of the script, but just several weeks ago on this list there was a thread about it. Yakov it's not

Re: Single-File Vim?

2006-09-22 Thread A.J.Mechelynck
Hari Krishna Dara wrote: On Sat, 23 Sep 2006 at 1:46am, A.J.Mechelynck wrote: Hari Krishna Dara wrote: On Fri, 22 Sep 2006 at 4:05pm, Dmitriy Yamkovoy wrote: Hi all, Is there a binary compiled for Windows which allows me to run Vim without any of the runtime files? Long story short, I want

Re: copy paste file names from windows explorer

2006-09-22 Thread A.J.Mechelynck
Hari Krishna Dara wrote: On Sat, 23 Sep 2006 at 12:49am, Yakov Lerner wrote: On 9/23/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: I am wondering if it is possible to copy a file in the windows explorer (MS windows) and then access the filename(s) from vim/gvim. I know there are workarounds

RE: Single-File Vim?

2006-09-22 Thread David Fishburn
-Original Message- From: Dmitriy Yamkovoy [mailto:[EMAIL PROTECTED] Sent: Friday, September 22, 2006 4:06 PM To: Vim List Subject: Single-File Vim? Hi all, Is there a binary compiled for Windows which allows me to run Vim without any of the runtime files? Long story short,

Why not use binary search for wildmode tag completion in case of fixed-start, non-regex pattern?

2006-09-22 Thread Stahlman Family
Recently, I've begun building tags for a very large development project. The time required by Vim to build the list prior to displaying the first match after I hit wildchar for a :tag command has become noticeably long. I researched it a bit in both the help and the source code, and I'm

Re: Single-File Vim?

2006-09-22 Thread Yegappan Lakshmanan
On 9/22/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: trim For the sake of argument, glancing through your list again I find none of them to be essential. The only feature out of the list that I use most is the matchit, the rest, I don't either (regularly) use or need. Not even the help?