Newbie problem: Beginners script pitfall

2006-05-06 Thread Meino Christian Cramer
Hi, WARNING ! VAST DANGER ! NEWBIE QUESTION AHEAD ! :) I got stuck! I read several times user_40.txt and user_41.txt but can't figure out, why my very very basic script simply does nothing. It is a very very verbose implemention of the NOOP-command, I fear. It even does not display an error

Re: Perl's map in VimL

2006-05-06 Thread Eric Arnold
vim's map()? :-) On 5/6/06, Suresh Govindachar <[EMAIL PROTECTED]> wrote: Hello, What is the counterpart in VimL of perl's map command? Here's an example of how the map command would be useful in VimL: As shown by the example in help inputlist(): let color = inputlist(['

RE: avoid "Press Enter..." with new z= from function

2006-05-06 Thread Suresh Govindachar
A slight improvement in the format of the output from the code fragment in what I wrote a little while ago: > Steve Hall Sent on Saturday, May 06, 2006 > > On Fri, 2006-05-05 at 02:25 -0600, Eric Arnold wrote: > > > On 5/4/06, Steve Hall <[EMAIL PROTECTED]> wrote: > > > > > > >

RE: avoid "Press Enter..." with new z= from function

2006-05-06 Thread Suresh Govindachar
Steve Hall Sent on Saturday, May 06, 2006 > On Fri, 2006-05-05 at 02:25 -0600, Eric Arnold wrote: > > On 5/4/06, Steve Hall <[EMAIL PROTECTED]> wrote: > > > > > > Is there a way to avoid the "Press ENTER or type command to > > > continue" when requesting spelling suggestions from a

Perl's map in VimL

2006-05-06 Thread Suresh Govindachar
Hello, What is the counterpart in VimL of perl's map command? Here's an example of how the map command would be useful in VimL: As shown by the example in help inputlist(): let color = inputlist(['Select color:', '1. red', \ '2. green', '3. b

Enhanced "inputdialog()" as for input mechanisms of i_CTRL-N, z= etc.

2006-05-06 Thread Suresh Govindachar
Hello, I know about inputdialog() for getting user input from within VimL. My question is how to access the user-input mechanisms used by i_CTRL-N, z=, i_CTRL-X_CTRL-S etc. from within VimL? Thanks, --Suresh

Re: avoid "Press Enter..." with new z= from function

2006-05-06 Thread Steve Hall
On Fri, 2006-05-05 at 02:25 -0600, Eric Arnold wrote: > On 5/4/06, Steve Hall <[EMAIL PROTECTED]> wrote: > > > > Is there a way to avoid the "Press ENTER or type command to > > continue" when requesting spelling suggestions from a :normal z= > > call in a function? > > > > I'm not able to make any

Re: avoid "Press Enter..." with new z= from function

2006-05-06 Thread Steve Hall
On Fri, 2006-05-05 at 09:22 +0200, Bram Moolenaar wrote: > Steve Hall wrote: > > > Is there a way to avoid the "Press ENTER or type command to > > continue" when requesting spelling suggestions from a :normal z= > > call in a function? > > > > I'm not able to make any of the usual tricks (&shm, rai

Re: exists(":for") gives error in vim6.2

2006-05-06 Thread Christian Ebert
* Suresh Govindachar on Saturday, May 06, 2006 at 15:06:27 -0700: > > Christian Ebert wrote: > > I wanted to use the exists clause to fork a script > > according to the current vim version, and this works > > in other cases. > > Bram explained the issue with endfor. I am curious as >

Re: lines folding by pattern ; was Re: hiding lines

2006-05-06 Thread Bill Pursell
Yakov Lerner wrote: On 5/6/06, Bill Pursell <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 5/4/06, Jack Donohue <[EMAIL PROTECTED]> wrote: > >> > :v (and :g) made my day..! >> >> Yes, I use this a lot if I just want to filter out a set of lines, or see >> only lines containing some text

Re: avoid "Press Enter..." with new z= from function

2006-05-06 Thread Dominic Evans
On 5/5/06, Eric Arnold <[EMAIL PROTECTED]> wrote: Are you saying you always want the first entry? How about something like: nnoremap z= z=1 Though you might want to pick something else to remap than z= , in case you want to pick from the list sometimes. you can already use '1z=' to auto chan

RE: exists(":for") gives error in vim6.2

2006-05-06 Thread Suresh Govindachar
> Christian Ebert wrote: > > > I wanted to use the exists clause to fork a script > according to the current vim version, and this works > in other cases. Bram explained the issue with endfor. I am curious as to why you don't fork -- based not on test for existence of :

Re: exists(":for") gives error in vim6.2

2006-05-06 Thread Christian Ebert
* Bram Moolenaar on Saturday, May 06, 2006 at 23:48:03 +0200: > Christian Ebert wrote: >> I wanted to use the exists clause to fork a script according to >> the current vim version, and this works in other cases. >> >> The problem is the for-loop, it doesn't choke on something like >> add() which

Re: exists(":for") gives error in vim6.2

2006-05-06 Thread Bram Moolenaar
Christian Ebert wrote: > The following test script gives an error in vim6.2 when it is > sourced: > > function TestFor() > if exists(":for") > " v:version >= 700 > let l:test = [] > for word in ["hello", "world"] > call add(l:test, word) > endfor > return join(l:test)

exists(":for") gives error in vim6.2

2006-05-06 Thread Christian Ebert
Hello, The following test script gives an error in vim6.2 when it is sourced: function TestFor() if exists(":for") " v:version >= 700 let l:test = [] for word in ["hello", "world"] call add(l:test, word) endfor return join(l:test) else return "hello world" endi

Re: lines folding by pattern ; was Re: hiding lines

2006-05-06 Thread Yakov Lerner
On 5/6/06, Bill Pursell <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 5/4/06, Jack Donohue <[EMAIL PROTECTED]> wrote: > >> > :v (and :g) made my day..! >> >> Yes, I use this a lot if I just want to filter out a set of lines, or see >> only lines containing some text (like the old XEDIT comm

Re: lines folding by pattern ; was Re: hiding lines

2006-05-06 Thread Bill Pursell
Yakov Lerner wrote: On 5/4/06, Jack Donohue <[EMAIL PROTECTED]> wrote: > :v (and :g) made my day..! Yes, I use this a lot if I just want to filter out a set of lines, or see only lines containing some text (like the old XEDIT command). But what I'd really like to to is continue editing in t

Re: new + TabEnter is crashing

2006-05-06 Thread Ilya
Eric Arnold wrote: BTW, I can't get WinDbg to recognize the .pdb files, although I've set the Symbol path to the directory containing them. Is there some trick to this? IIRU, you should set Symbol path one directory higher. At least this is true for Windows symbols. Thous are extracted to

Re: new + TabEnter is crashing

2006-05-06 Thread Eric Arnold
On 5/6/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Eric Arnold wrote: One more try, got a mailer daemon error. > On 5/6/06, Eric Arnold <[EMAIL PROTECTED]> wrote: > > Thanks. It works great when entering existing tabs, but there is still > > something odd when a tab is entered via "tabnew"

RE: Syntax file

2006-05-06 Thread Suresh Govindachar
Eric Arnold wrote: > On 5/5/06, Suresh Govindachar wrote: > > I would like to color a file as follows: > > Everything is "normal" except for lines whose > foldlevel is different from the foldlevel of both > the line above and the line below. For su

Re: new + TabEnter is crashing

2006-05-06 Thread Bram Moolenaar
Eric Arnold wrote: One more try, got a mailer daemon error. > On 5/6/06, Eric Arnold <[EMAIL PROTECTED]> wrote: > > Thanks. It works great when entering existing tabs, but there is still > > something odd when a tab is entered via "tabnew". I am able to open a new > > window in the new tab, b

Using vim to keep a todo list

2006-05-06 Thread Peter Princz
Yi, On 05/05/06, Yi Qiang <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for all the wonderful suggestions, I certainly learned quite a bit :) Yi add one more note to VimOutliner plugin. It's wonderful. I gave my PDA's to my brothers as gifts, migrated from c

Re: new + TabEnter is crashing

2006-05-06 Thread Eric Arnold
One more try, got a mailer daemon error. On 5/6/06, Eric Arnold <[EMAIL PROTECTED]> wrote: Thanks. It works great when entering existing tabs, but there is still something odd when a tab is entered via "tabnew". I am able to open a new window in the new tab, but I end up with one NoName defau

Re: new + TabEnter is crashing

2006-05-06 Thread Bram Moolenaar
Eric Arnold wrote: > I don't know if it's supported to do this, but I'm crashing VIm70g, > WinXP by doing a "new" in a "TabEnter" autocommand. The crash doesn't > immediately follow the "new" command, but soon after when other > functions start looking through the windows. Doing ":new" in a Tab

VIM on Windows Mobile 5.0/Dell Axim?

2006-05-06 Thread Paul Kirkaas
Hi; I searched the forums, but didn't find an answer... Does anyone have any experience with vim on a Dell Axim (x51v) or other pocket PC running Windows Mobile? I've found two releases for pocket PC platforms, one for the HP Jornada, and one for Windows CE. I don't know which works better on

Re: Syntax file

2006-05-06 Thread Eric Arnold
>> On 5/5/06, Suresh Govindachar wrote: >>> >>> I would like to color a file as follows: >>> >>> Everything is "normal" except for lines whose >>> foldlevel is different from the foldlevel of both >>> the line above and the line below. For such lines, >>> the color should be Color