Re: vim is too smart for its own good

2006-09-01 Thread Matthew Winn
On Thu, 31 Aug 2006 14:49:32 -0500, Tim Chase <[EMAIL PROTECTED]> wrote: > There's always "ed"... > > -more ubiquitous in its presence > -consistent in its behavior > -powerful > -tools like "diff" interoperate with it > -it can be used on a slow TTY > -can be used on with a one-line display > -s

Re: bug with vimdiff and 'modifiable' check

2006-09-01 Thread Christian Ebert
* Hari Krishna Dara on Thursday, August 31, 2006 at 14:48:41 -0700: > I just found out that Vim checks the wrong buffer for 'modifiable' flag > while doing a :diffput. I have two buffers being diffed, with the left > one set to 'nomodifiable', and the right one set to 'modifiable', and > when I try

Re: How does Vim bundle the actions done by a BufWritePre autocmd?

2006-09-01 Thread Yakov Lerner
On 8/31/06, Elliot Shank <[EMAIL PROTECTED]> wrote: I've got a situation similar to the following: augroup A autocmd BufWritePre [stuff that changes the buffer before writing] augroup END augroup B autocmd BufWritePre [stuff that changes the buffer before writing] autocmd BufWri

Re: vim is too smart for its own good

2006-09-01 Thread Yakov Lerner
On 8/31/06, Bruce Korb <[EMAIL PROTECTED]> wrote: Hi, I'd like to use a plain text editor. I don't want any surprises. I don't want it to think it understands language syntax. I don't want it to colorize things. I don't want it to do anything at all for me, unless I explicitly say it is okay for

case insensitive glob

2006-09-01 Thread Eddy Zhao
Hi, I'm using vim 7.0, and find glob is case-sensitive. Is there way to make glob case-insensitive ? I'm asking this because some plugin (like lookupfile) rely on glob, and case-sensitive globbing is very inconvenient. (BTW, I'm finding on windows glob is case-insensitive) Thanks Eddy

Re: case insensitive glob

2006-09-01 Thread Eddy Zhao
Sorry, forget to mention, I'm using vim on linux. 2006/9/1, Eddy Zhao <[EMAIL PROTECTED]>: Hi, I'm using vim 7.0, and find glob is case-sensitive. Is there way to make glob case-insensitive ? I'm asking this because some plugin (like lookupfile) rely on glob, and case-sensitive globbing is

Re: case insensitive glob

2006-09-01 Thread A.J.Mechelynck
Eddy Zhao wrote: Sorry, forget to mention, I'm using vim on linux. 2006/9/1, Eddy Zhao <[EMAIL PROTECTED]>: Hi, I'm using vim 7.0, and find glob is case-sensitive. Is there way to make glob case-insensitive ? I'm asking this because some plugin (like lookupfile) rely on glob, and case-sens

Re: case insensitive glob

2006-09-01 Thread Tim Chase
glob() reflects the behaviour of the underlying filesystem. In Windows, "dir FoO*.*" will list both FOOBAR.TXT and foobar.htm if present. In Linux, "ls -l FoO*" will list neither, even if present. That's why glob() is case-insensitive in Windows and case-sensitive in Linux. I suppose one could

Extra spaces when autoindenting

2006-09-01 Thread Evan Silberman
For any filetype, autoindenting (rather, filetypeindent) has suddenly started adding 2n extra spaces after n autotabs. (I have :set noet, :set ts=6) I have no idea what option might be doing this, or why it got set, but it's infuriating. Can anybody help point me in the right direction? Much obli

Re: Extra spaces when autoindenting

2006-09-01 Thread A.J.Mechelynck
Evan Silberman wrote: For any filetype, autoindenting (rather, filetypeindent) has suddenly started adding 2n extra spaces after n autotabs. (I have :set noet, :set ts=6) I have no idea what option might be doing this, or why it got set, but it's infuriating. Can anybody help point me in the righ

Re: Extra spaces when autoindenting

2006-09-01 Thread Evan Silberman
Aha. That's exactly what I was looking for. Thanks for your help. On 9/1/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: Evan Silberman wrote: > For any filetype, autoindenting (rather, filetypeindent) has suddenly > started adding 2n extra spaces after n autotabs. (I have :set noet, > :set ts=6)

Re: bug with vimdiff and 'modifiable' check

2006-09-01 Thread Bram Moolenaar
Hari Krishna Dara wrote: > I just found out that Vim checks the wrong buffer for 'modifiable' flag > while doing a :diffput. I have two buffers being diffed, with the left > one set to 'nomodifiable', and the right one set to 'modifiable', and > when I try to :diffput from left to right, it compl

Vim BOF session

2006-09-01 Thread Bram Moolenaar
Greetings, Vim users. I am hosting a Vim BOF at the upcoming O'Reilly Open Source Convention: Title: Vim 8? Date: Tuesday, 19 September 2006 Time: 20:30 - 21:30 Location: Salon Versailles Summary: Vim 7 was released May 2006. Does it make sense to make an

Re: bug with vimdiff and 'modifiable' check

2006-09-01 Thread Hari Krishna Dara
On Fri, 1 Sep 2006 at 10:18pm, Bram Moolenaar wrote: > > Hari Krishna Dara wrote: > > > I just found out that Vim checks the wrong buffer for 'modifiable' flag > > while doing a :diffput. I have two buffers being diffed, with the left > > one set to 'nomodifiable', and the right one set to 'modif

unmatched strings

2006-09-01 Thread Robert Hicks
Is there a way to highlight unmatched strings for " and ' in a syntax file? Robert

Re: Vim BOF session

2006-09-01 Thread Robert Hicks
Bram Moolenaar wrote: Greetings, Vim users. I am hosting a Vim BOF at the upcoming O'Reilly Open Source Convention: Title: Vim 8? Date: Tuesday, 19 September 2006 Time: 20:30 - 21:30 Location: Salon Versailles Summary: Vim 7 was released May 2006. Does it make sense

Re: How does Vim bundle the actions done by a BufWritePre autocmd?

2006-09-01 Thread Elliot Shank
Yakov Lerner wrote: On 8/31/06, Elliot Shank <[EMAIL PROTECTED]> wrote: I've got a situation similar to the following: [chop] Obviously, in group A I'm trying to make a change in the buffer as well as on disk. In group B, I'm trying to only make a change to disk. The command handlers are in

Re: unmatched strings

2006-09-01 Thread A.J.Mechelynck
Robert Hicks wrote: Is there a way to highlight unmatched strings for " and ' in a syntax file? Robert Have a look at syntax/vim.vim, where an unpaired " starts a comment. Best regards, Tony.

vim integration with netbeans

2006-09-01 Thread Luke Vanderfluit
Hi. Hello to everyone (-: This is a great list! question: I'm running netbeans 5.0 and would like to use vi as the editor. I've searched the web and found netbeans external editor. Does anyone have experience using vi within netbeans? If so, could you tell me what you did? Thanks. Kind regards.

Re: unmatched strings

2006-09-01 Thread Tim Chase
Is there a way to highlight unmatched strings for " and ' in a syntax file? What is an "unmatched string"? -tim

Re: unmatched strings

2006-09-01 Thread Robert Hicks
Robert Hicks wrote: Is there a way to highlight unmatched strings for " and ' in a syntax file? Robert By unmatched I mean: "This is a string This is a string"

Re: Vim BOF session

2006-09-01 Thread Gabriel B.
didn't get if it was just a invitation to the brussels' talk or a invite to a vim8 suggestion fest. so i'm bitting :) wrote that about vim7: http://gabriel.barros.googlepages.com/vim7reviewrant vim8 should be about interface and feedback. It's functional as it is today. But not easy yet. i'am a

Re: gvim + gnome nautilus

2006-09-01 Thread Gabriel B.
On 8/30/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: Gabriel B. wrote: > I've used gvim with gnome for some time. > > Now when i try to open a file with right click in the file nautilus' > icon, open with gvim. I get: > > Erreur détectée en traitant BufReadCmd Auto commandes pour "file://*": > e

Using commands that use unix EDITOR environment variable

2006-09-01 Thread Ujjal Bose
Hi , in my machine if I set EDITOR as gvim and then try to execute commands like "crontab -e" that invoke editors, I get a gvim window , but it does not open my existing crontab file, nor does it allow me to do any changes. But if I set the EDITOR as vi , everything works. Any clues ? -Ujjal

Re: unmatched strings

2006-09-01 Thread Peter Hodge
--- Tim Chase <[EMAIL PROTECTED]> wrote: > > Is there a way to highlight unmatched strings for " and ' in a syntax file? > > What is an "unmatched string"? Here's two matches which will find a string that extends to the end of the line: syntax match Error /"\%(\\.\|[^"]\)*$/ syntax match E