Re: Terminating search in function

2006-10-22 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, I wrote this snippet: " fun! Ffunchdr() let date = strftime( "%F" ) put='/*-*/' put='/**'

Re: Terminating search in function

2006-10-22 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: Terminating search in function Date: Sun, 22 Oct 2006 09:33:01 +0200 > Meino Christian Cramer wrote: > > Hi, > > > > I wrote this snippet: > > > > " > > fun! F

cnoremap + getcmdtype()

2006-10-22 Thread Yakov Lerner
cnoremap (getcmdtype()=='/' ? "\n:redraw" : "\n") I am intercepring the in the /pattern search. When search is found, it works. E.g., type /., and you see :redraw as a sign that mapping worked. But when search was not found, this mapping does not work. Why ? Type /xyzxyz, and :redraw does not

Re: Terminating search in function

2006-10-22 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: Terminating search in function Date: Sun, 22 Oct 2006 09:33:01 +0200 Meino Christian Cramer wrote: Hi, I wrote this snippet: "---

Re: Terminating search in function

2006-10-22 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: Terminating search in function Date: Sun, 22 Oct 2006 11:00:14 +0200 > Meino Christian Cramer wrote: > > From: "A.J.Mechelynck" <[EMAIL PROTECTED]> > > Subject: Re: Terminating search in function > > Date: Sun, 22 Oct 2006 09:33:01 +0200 > >

Tutorial Part 2

2006-10-22 Thread Java Bob
I learnt most of what I know about gVim from the tutorial. I know it's a lot to ask for but a "Tutorial Part 2" would be excellent. It could introduce concept and applications of:- Regular Expressions, Options, autocmd, text formatting, scripting, compiling,

Re: Tutorial Part 2

2006-10-22 Thread Yakov Lerner
On 10/22/06, Java Bob <[EMAIL PROTECTED]> wrote: I learnt most of what I know about gVim from the tutorial. I know it's a lot to ask for but a "Tutorial Part 2" would be excellent. It could introduce concept and applications of:- Regular Expressions, Options, autocmd,

Re: cnoremap + getcmdtype()

2006-10-22 Thread Bram Moolenaar
Yakov Lerner wrote: > cnoremap (getcmdtype()=='/' ? "\n:redraw" : "\n") > > I am intercepring the in the /pattern search. > > When search is found, it works. E.g., type /., and you see :redraw > as a sign that mapping worked. > > But when search was not found, this mapping does not work. > W

Re: Terminating search in function

2006-10-22 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: Terminating search in function Date: Sun, 22 Oct 2006 11:00:14 +0200 Meino Christian Cramer wrote: From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: Terminating search in function Date: Sun, 22 Oct 2006

Re: cnoremap + getcmdtype()

2006-10-22 Thread Yakov Lerner
On 10/22/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > cnoremap (getcmdtype()=='/' ? "\n:redraw" : "\n") > > I am intercepring the in the /pattern search. > > When search is found, it works. E.g., type /., and you see :redraw > as a sign that mapping worked. > > But when

Re: Tutorial Part 2

2006-10-22 Thread A.J.Mechelynck
Java Bob wrote: I learnt most of what I know about gVim from the tutorial. I know it's a lot to ask for but a "Tutorial Part 2" would be excellent. It could introduce concept and applications of:- Regular Expressions, Options, autocmd, text formatting, scripting,

Bug: CursorHoldI not triggered after startinsert

2006-10-22 Thread Hari Krishna Dara
I am using :startinsert! from my plugin to put the user in insert mode, but if the user doesn't type anything for 'updatetime' after this, no CursorHoldI event is generated. I tried doing an explicit :doauto right after :startinsert!, but Vim ignores it, probably because the command only schedules

Re: Terminating search in function

2006-10-22 Thread Yakov Lerner
Meino Christian Cramer wrote: execute "normal ?desc\" Yes. There is also :call search('pattern', 'b'). It is a bit less painful substitute to exe "normal ?pattern\". Yakov

RE: Tutorial Part 2

2006-10-22 Thread Java Bob
> > Java Bob wrote: > > I learnt most of what I know about gVim from the tutorial. I > know it's a > > lot to ask for but a "Tutorial Part 2" would be excellent. It could > > introduce concept and applications of:- > > Regular Expressions, > > Options, > > autocmd, > > tex

Re: Terminating search in function

2006-10-22 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: Terminating search in function Date: Sun, 22 Oct 2006 12:29:36 +0200 > Meino Christian Cramer wrote: > > From: "A.J.Mechelynck" <[EMAIL PROTECTED]> > > Subject: Re: Terminating search in function > > Date: Sun, 22 Oct 2006 11:00:14 +0200 > >

Vim charity: Drought continues

2006-10-22 Thread Bram Moolenaar
Greetings, Vim users. If you don't care about helping needy children in Uganda, which is Vim's charity, then skip this message. As mentioned before, the area of Kibaale has been suffering from a drought for several months now. Here is an update from Jackie Ammeter that I received today: The f

Re: Terminating search in function

2006-10-22 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: "A.J.Mechelynck" <[EMAIL PROTECTED]> [...] BTW, instead of all those "put" statements, wouldn't it be simpler to have your template as a separate file, and use ":r filename" to insert it after the cursor? Best regards, Tony. Hi Tony, ...hrrr clea

Re: Adding (put) more than a single line

2006-10-22 Thread Yegappan Lakshmanan
Hi, On 10/22/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: By the way: Is there a way to "puts" more than a single line? Something like an HERE-doc? :h gives me nothing... You can use any one of the following methods to add/put more than a single line: ---

missing setbufline()?

2006-10-22 Thread Hari Krishna Dara
I see functions for creating new unlisted buffers (bufnr() with {create} option), and for reading the lines from the buffer using getbufline(), all without having to change the current buffer, but I don't see a setbufline() so there is no way to set the lines without having to switch to it. Is the

filter text through python script

2006-10-22 Thread Rick Dooling
Hello, I'm sure this is my fault or some Windows snafu. But using gvim 7.0 on Windows XP, I can't seem to get gvim to successfully filter text through a Python script. I also use NoteTab and have no problems running text from NoteTab through the same Python script. Any vimmers help with this? I'

Re: Bug: CursorHoldI not triggered after startinsert

2006-10-22 Thread Hari Krishna Dara
On Sun, 22 Oct 2006 at 5:25pm, Hari Krishna Dara wrote: > > I am using :startinsert! from my plugin to put the user in insert mode, > but if the user doesn't type anything for 'updatetime' after this, no > CursorHoldI event is generated. I tried doing an explicit :doauto right > after :startinser

Spam on vim.org

2006-10-22 Thread Peter Hodge
Hello, Can the person responsible please remove this spam from vim.org? http://www.vim.org/tips/tip.php?tip_id=1367 regards, Peter Do you Yahoo!? Yahoo!7 Time Capsule - Make your mark and be a part of history http://www.ya

Re: missing setbufline()?

2006-10-22 Thread Yegappan Lakshmanan
Hi Hari, On 10/22/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: I see functions for creating new unlisted buffers (bufnr() with {create} option), and for reading the lines from the buffer using getbufline(), all without having to change the current buffer, but I don't see a setbufline() so t

Re: Spam on vim.org

2006-10-22 Thread Yongwei Wu
Removed. Don't worry, spam won't stay there long. There are more than 10 people checking for spam in different time zones. Checking the tip list you will find holes in the sequence numbers, which indicates removed tips. On 10/23/06, Peter Hodge <[EMAIL PROTECTED]> wrote: Hello, Can the person

Re: missing setbufline()?

2006-10-22 Thread Hari Krishna Dara
On Sun, 22 Oct 2006 at 6:20pm, Yegappan Lakshmanan wrote: > Hi Hari, > > On 10/22/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: > > > > I see functions for creating new unlisted buffers (bufnr() with {create} > > option), and for reading the lines from the buffer using getbufline(), > > all wi

Need help about 3 questions

2006-10-22 Thread Raymond
Hello all, I'm new to Vim, now i'm using GVim 7.0 on Windows system. Here is my questions. 1. Just installed UTL.VIM plugin ( http://vim.sf.net/script.php?script_id=293). Its \gu feature is usful to me. One thing I couldn't figure out is how to highlight URLs and email address in text file. A

Re: missing setbufline()?

2006-10-22 Thread Yegappan Lakshmanan
Hi Hari, On 10/22/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: > On 10/22/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: > > > > I see functions for creating new unlisted buffers (bufnr() with {create} > > option), and for reading the lines from the buffer using getbufline(), > > all witho

Re: Need help about 3 questions

2006-10-22 Thread Bill McCarthy
On Sun 22-Oct-06 11:09pm -0600, Raymond wrote: > I'm new to Vim, now i'm using GVim 7.0 on Windows system. > Here is my questions. > > 2. Now I know how to install *.vim plugin. Then I > encounter VISINCR.VBA plugin > (http://www.vim.org/scripts/script.php?script_id=670). How > to install this kin