Re: blank line at end of file

2007-04-24 Thread Matthew Winn
On Mon, 23 Apr 2007 09:47:21 -0500, Tim Chase [EMAIL PROTECTED] wrote: I use vim7 on Win32 and every time I save a file, vim adds a new blank (CR+LF) line at the end of the file although it is not visible when in vim. Is there an option to disable this behaviour? yes, there is a way to

adding buffer using find awk and stderr

2007-04-24 Thread list
Hello, I am trying to open many buffers using some command line tools. For example. find . -name pom.xml | awk '{print bad $1 /dev/stderr}' | vi - then issuing ls to no avail iff I issue find . -name pom.xml | awk '{print bad $1 /dev/stderr}' 2 session ; vi -S session Then I have all

Re: adding buffer using find awk and stderr

2007-04-24 Thread Tim Chase
find . -name pom.xml | awk '{print bad $1 /dev/stderr}' | vi - then issuing ls to no avail iff I issue find . -name pom.xml | awk '{print bad $1 /dev/stderr}' 2 session ; vi -S session [cut] I think I'm missing a point somewhere, can you think of anyway to skip the intermediary session

RE: blank line at end of file

2007-04-24 Thread Gene Kwiecinski
Some products will consider a file without a terminator on the final line to have been truncated, and will report it as a potential problem because from the product's point of view the input has terminated Now ya know why I *always* put a blank line at the end of *everything*: .htm files, .css

RE: wish: collaboration of N vim instances editing same file

2007-04-24 Thread Gene Kwiecinski
Odd, I got this here, but not from the vimlist... Couldn't the 'patch' command do this? E.g., Vim#1 has made some changes to example.c (but not saved them), and Vim#2 makes some different changes and ... Shouldn't this be possible through the autocommands? I think you could write this as a

Re: What plugin is the one that does the following ...

2007-04-24 Thread Andrew Falanga
On 4/23/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: 1) Get up-to-date versions of vimball and netrw: vimball: http://vim.sourceforge.net/scripts/script.php?script_id=1502 -or- http://mysite.verizon.net/astronaut/vim/index.html#VimBall (the mysite.verizon.net one will be

Re: undo line numbers wrong

2007-04-24 Thread Bram Moolenaar
Rob Cussons wrote: just wondering if anyone else had experienced an error message like this. It seems that every so often, I've not managed to find any systematics to this, when I try to perform an undo, I get undo line numbers wrong or something similar, sorry I don't have the exact

Re: What plugin is the one that does the following ...

2007-04-24 Thread A.J.Mechelynck
Andrew Falanga wrote: On 4/23/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: 1) Get up-to-date versions of vimball and netrw: vimball: http://vim.sourceforge.net/scripts/script.php?script_id=1502 -or- http://mysite.verizon.net/astronaut/vim/index.html#VimBall (the

Re: What plugin is the one that does the following ...

2007-04-24 Thread A.J.Mechelynck
Andrew Falanga wrote: It means step 2 wasn't done properly. You should find the unpacked vimball files in the plugin/ and autoload/ subfolders of some folder mentioned in 'runtimepath'. Nope, I looked in each of the directories (after doing tar -tf vimball.tar, to get a list of the files),

Re: What plugin is the one that does the following ...

2007-04-24 Thread Andrew Falanga
On 4/24/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Andrew Falanga wrote: It means step 2 wasn't done properly. You should find the unpacked vimball files in the plugin/ and autoload/ subfolders of some folder mentioned in 'runtimepath'. Nope, I looked in each of the directories (after

Re: What plugin is the one that does the following ...

2007-04-24 Thread A.J.Mechelynck
Andrew Falanga wrote: On 4/24/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Andrew Falanga wrote: It means step 2 wasn't done properly. You should find the unpacked vimball files in the plugin/ and autoload/ subfolders of some folder mentioned in 'runtimepath'. Nope, I looked in each of

Re: What plugin is the one that does the following ...

2007-04-24 Thread drchip
Quoting Andrew Falanga [EMAIL PROTECTED]: On 4/24/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Andrew Falanga wrote: Using your directions above, I continually get problems on step 4. when I so :so % I'm constantly returned UseVimball is not a vim command, or something

Re: Vim freezes system ?!

2007-04-24 Thread John Beckett
Tim Chase wrote: Or even a quality :s command instead of a function: :%s/.\{72}/r/g Thanks - I occasionally need to split a line into equal-length blocks and your command is excellent. Your posts are very valuable. However, for anyone trying this, 'r' should be '\r'. :%s/.\{72}/\r/g John

Re: wish: allow a: in the function def

2007-04-24 Thread Peter Hodge
--- Nikolai Weibull [EMAIL PROTECTED] wrote: On 4/23/07, Yakov Lerner [EMAIL PROTECTED] wrote: wish: allow a: in the function definition line: function foo(a:line1, a:line2) This is currently not allowed. But it seems logical to allow it. Why should it be? Extra typing? So that

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Ilya Sher
Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language If I understand you correctly, you assume that ECMAScript is the most popular language among the people that wish to customize

Re: wish: allow a: in the function def

2007-04-24 Thread Andy Wokula
Thomas schrieb: Yakov Lerner schrieb: wish: allow a: in the function definition line: function foo(a:line1, a:line2) yeah, occasionally I do :setl isk+=: to get completion of variable names in vim scripts. I'd like to have this for function arguments, too. Counterwish: implement

Re: wish: allow a: in the function def

2007-04-24 Thread Thomas
Also would it be _recommended_ to ever use a window-local variable without the w: prefix? ... IMHO not. Well, it would make it easier for the user to configure scripts. I'm myself not convinced that it's a good idea to allow this for all variables, though. But I think it could be useful in

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Yakov Lerner
On 4/24/07, Ilya Sher [EMAIL PROTECTED] wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language As a sarcastic joke, this sounds average. But seriously, vim having supprt for

Re: Vim's ole functionality

2007-04-24 Thread Nageshwar M
Hello, Sorry for raising this issue again. The problem was not yet solved. I tried all the options I checked :version and there is this line with OLE support. I tried to run the application from python as said in documentation and its working fine there. But from java with swt library I'm

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Gregory Seidman
On Tue, Apr 24, 2007 at 10:49:49AM +0300, Ilya Sher wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language If I understand you correctly, you assume that ECMAScript is the

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Nikolai Weibull
On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: On Tue, Apr 24, 2007 at 10:49:49AM +0300, Ilya Sher wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language If I

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Nikolai Weibull
On 4/24/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/24/07, Ilya Sher [EMAIL PROTECTED] wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language As a sarcastic joke,

Re: [PATCH] Determining whether a window used :lcd

2007-04-24 Thread Bob Hiestand
On 4/23/07, Nikolai Weibull [EMAIL PROTECTED] wrote: The attached patch very simply implements the following from the todo: Wait! I have a comment! Isn't this todo just a subset of 6 Add :cdprev: go back to the previous directory. Need to remember a stack of previous directories. We

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Gregory Seidman
On Tue, Apr 24, 2007 at 05:57:45PM +0200, Nikolai Weibull wrote: On 4/24/07, Ilya Sher [EMAIL PROTECTED] wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language If I

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Nikolai Weibull
On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: On Tue, Apr 24, 2007 at 05:57:45PM +0200, Nikolai Weibull wrote: On 4/24/07, Ilya Sher [EMAIL PROTECTED] wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Gregory Seidman
On Tue, Apr 24, 2007 at 05:49:19PM +0200, Nikolai Weibull wrote: On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: On Tue, Apr 24, 2007 at 10:49:49AM +0300, Ilya Sher wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using

Re: wish: allow a: in the function def

2007-04-24 Thread A.J.Mechelynck
Robert Lee wrote: [...] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language just to change the color scheme or keyboard mappings. Yes, this will break backwards compatibility. Tough. [...] Don't? WTF

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Yakov Lerner
On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: On Tue, Apr 24, 2007 at 05:49:19PM +0200, Nikolai Weibull wrote: On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: On Tue, Apr 24, 2007 at 10:49:49AM +0300, Ilya Sher wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript

Re: replace VimScript

2007-04-24 Thread A.J.Mechelynck
Nikolai Weibull wrote: On 4/24/07, Ilya Sher [EMAIL PROTECTED] wrote: Robert Lee wrote: [snip] Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language If I understand you correctly, you assume that ECMAScript

Re: search() and smartcase

2007-04-24 Thread Bram Moolenaar
Yakov Lerner wrote: The search() doesn't seem to follow 'smartcase' (and this does not seem to be documented). Is it possible to have a flag to search() to obey the 'smartcase' ? Can it be included into todo ? The search() function does use 'smartcase'. -- hundred-and-one symptoms of being

Re: [PATCH] Determining whether a window used :lcd

2007-04-24 Thread Bram Moolenaar
Bob Hiestand wrote: On 4/20/07, Bram Moolenaar [EMAIL PROTECTED] wrote: It was still in my pile of messages to read. I apologize for my impatience. I agree that a different function would be more useful. I prefer haslocaldir(). This would return zero when the current window uses

Re: replace VimScript

2007-04-24 Thread Ilya Sher
Yakov Lerner wrote: [snip] So do not worry, replacement of vimscript by the favourite language of some vim's random user is not going to happen. That is obvious. The point was the question why the OP named language X and not Y for this. Yakov -- For robots (please don't mail me there):

Re: coredump with match by lines-range (7.0.222); highlighting is not painted fully.

2007-04-24 Thread Yakov Lerner
On 4/24/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Multi-line matches are not always displayed correctly. A match is searched for in the line where redrawing starts, which can be anywhere. Your pattern only matches when redrawing starts at or before line 4078. Maybe we need a pattern that

Re: wish: allow a: in the function def

2007-04-24 Thread Andy Wokula
Nikolai Weibull schrieb: On 4/24/07, Andy Wokula [EMAIL PROTECTED] wrote: Thomas schrieb: So maybe one could make vimscript search a variable foo as l:foo, a:foo, (maybe also: w:foo, b:foo), s:foo, g:foo, and then throw an undefined variable name error if none exists. Or so. Don't

Re: replace VimScript (was: wish: allow a: in the function def)

2007-04-24 Thread Nikolai Weibull
On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: In fact, what I'm asking it to do currently rarely takes much time, but it could be really nice to ask it to do a lot more and still not pay a huge time or memory penalty. What plugins/functionality are we missing that require better

Re: wish: allow a: in the function def

2007-04-24 Thread Nikolai Weibull
On 4/24/07, Yakov Lerner [EMAIL PROTECTED] wrote: Besides C and descentants, no other language treats function parameters as local variables. What am I missing? * You can assign to parameters in most languages. * You don't prefix parameters in some manner in most languages. * A parameter

Re: wish: allow a: in the function def

2007-04-24 Thread A.J.Mechelynck
Nikolai Weibull wrote: On 4/24/07, Andy Wokula [EMAIL PROTECTED] wrote: Nikolai Weibull schrieb: On 4/24/07, Andy Wokula [EMAIL PROTECTED] wrote: Thomas schrieb: So maybe one could make vimscript search a variable foo as l:foo, a:foo, (maybe also: w:foo, b:foo), s:foo, g:foo, and then

Re: replace VimScript

2007-04-24 Thread Robert Lee
Nikolai Weibull wrote: On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: In fact, what I'm asking it to do currently rarely takes much time, but it could be really nice to ask it to do a lot more and still not pay a huge time or memory penalty. What plugins/functionality are we missing