Re: BufEnter Oddity After TabEnter

2006-11-06 Thread Yakov Lerner
On 11/7/06, Bill McCarthy <[EMAIL PROTECTED]> wrote: On Sun 5-Nov-06 3:21am -0600, Yakov Lerner wrote: > On 11/5/06, Bill McCarthy <[EMAIL PROTECTED]> wrote: >> I am having a problem trying to echo a message triggered by >> an autocmd on BufEnter when entering a tab page. >> >> Try this: >> >>

Re: BufEnter Oddity After TabEnter

2006-11-06 Thread Bill McCarthy
On Mon 6-Nov-06 10:06pm -0600, A.J.Mechelynck wrote: > Somehow I see neither > > foo 123L, 2458C > > nor > > foo [New File] > > in your verbosefile; I thought one of them should be issued? That's because I didn't set 'vbs' and 'vfile' until after ":tabe foo" was executed. > Does

Re: BufEnter Oddity After TabEnter

2006-11-06 Thread A.J.Mechelynck
Bill McCarthy wrote: On Sun 5-Nov-06 3:21am -0600, Yakov Lerner wrote: On 11/5/06, Bill McCarthy <[EMAIL PROTECTED]> wrote: I am having a problem trying to echo a message triggered by an autocmd on BufEnter when entering a tab page. Try this: :au BufEnter foo echom "Entered foo" First

Re: noimd don't works under linux

2006-11-06 Thread Benji Fisher
On Mon, Nov 06, 2006 at 10:54:13PM +0800, Eddy Zhao wrote: > 2006/11/6, Benji Fisher <[EMAIL PROTECTED]>: [snip] > > Perhaps it would help if you described more precisely what is not > >working the way it should (or the way you expect). > > > > Hello Benji & Tony, thanks for tracing the proble

Re: BufEnter Oddity After TabEnter

2006-11-06 Thread Bill McCarthy
On Sun 5-Nov-06 3:21am -0600, Yakov Lerner wrote: > On 11/5/06, Bill McCarthy <[EMAIL PROTECTED]> wrote: >> I am having a problem trying to echo a message triggered by >> an autocmd on BufEnter when entering a tab page. >> >> Try this: >> >> :au BufEnter foo echom "Entered foo" >> >> First le

Re: let s:F=function('foo#func_in_this_file') ?

2006-11-06 Thread A.J.Mechelynck
Marc Weber wrote: Imagine having the files: -- >8 -- >8 autoload/test.vim - >8 -- >8 -- >8 function test#DoTest(a) if a == 1 call s:F1() else call s:F2() endif endfunction function test#Test() echo "test#Te

solved - Re: let s:F=function('foo#func_in_this_file') ?

2006-11-06 Thread Marc Weber
> -- >8 -- >8 autoload/test.vim - >8 -- >8 -- >8 > function test#DoTest(a) > if a == 1 > call s:F1() > else > call s:F2() > endif > endfunction I'm sorry. It does work. The solution is to use something like let G=s:F1

let s:F=function('foo#func_in_this_file') ?

2006-11-06 Thread Marc Weber
Imagine having the files: -- >8 -- >8 autoload/test.vim - >8 -- >8 -- >8 function test#DoTest(a) if a == 1 call s:F1() else call s:F2() endif endfunction function test#Test() echo "test#Test()" endfunction le

Re: gvim cut paste selection

2006-11-06 Thread Yakov Lerner
On 11/4/06, Ujjal Bose <[EMAIL PROTECTED]> wrote: I was having problem with cut-paste selections from X <-> Windows for gvim (6.2) , and this is the reply I got from the RealVNC team . So is there a way to solve this in gvim ? I found the patch someone made for very similar problem: htt

Re: avoiding unneeded buffer scrolling

2006-11-06 Thread Matt Zyzik
> > Matt Zyzik wrote: > >> It bothers me how when switching between tabs (gt) or switching between >> buffers (:bn, :bp), sometimes a buffer will end up being >> shifted/scrolled up/down within its window. >> >> For the occasions that I want to shift the buffer I have keys like "zz" >> to do this m

Re: avoiding unneeded buffer scrolling

2006-11-06 Thread Matt Zyzik
Yakov, Your tip is great. It fixed the first problem (with :bn, :bp). However, it does not take care of the second problem, regarding the tabs. In addition, Yakov, I've found some instances where your tip fails to work. It must be a bug in vim, because the tip's code looks fine. --Matt > On 11/

ANN: plaintex (plain TeX) ftplugin, ver. 0.2

2006-11-06 Thread Benji Fisher
Attention plain TeX users(1): I have uploaded version 0.2 of my ftplugin for plain TeX (filetype plaintex): http://www.vim.org/scripts/script.php?script_id=1685 Features: * Map " in Insert mode to produce either open or close quotes (`` or ''). * Map and to replace the Visual selection wi

Re: Expansion of ${!x*} and [EMAIL PROTECTED]

2006-11-06 Thread Linda W
Yakov Lerner wrote: Wrong list ? Yakov Oops...sorry; Must need higher octane coffee...(or sleep)... sigh, linda

[OT] Re: Expansion of ${!x*} and [EMAIL PROTECTED]

2006-11-06 Thread Marvin Renich
* Linda W <[EMAIL PROTECTED]> [061106 00:11]: > The manpages for "my" bash's (3.1.11 on Linux and 3.1.17 on cygwin/i686), > under Parameter Expansion, has: > > > ${!prefix*} > [EMAIL PROTECTED] >Expands to the names of variables whose names begin with prefix, >separated by

Re: File type retention

2006-11-06 Thread Daryl Lee
Thanks. I see where the c.vim plugin sets the browsefilter; I'll have to think about whether I want to adapt my habits or do some script-writing. Maybe some of both! Benji Fisher wrote: On Fri, Nov 03, 2006 at 11:12:19AM -0700, Daryl Lee wrote: This may be a Windows issue, but maybe someone he

Re: noimd don't works under linux

2006-11-06 Thread A.J.Mechelynck
Eddy Zhao wrote: [...] Though status line shows imd is being reset while change from nomal mode to insert mode, but IM is not enabled (in other words, scim input window is not popup when return back to insert mode). That's the problem I encountered. Anything else I can try to debug to nail down t

Re: avoiding unneeded buffer scrolling

2006-11-06 Thread Bram Moolenaar
Matt Zyzik wrote: > It bothers me how when switching between tabs (gt) or switching between > buffers (:bn, :bp), sometimes a buffer will end up being > shifted/scrolled up/down within its window. > > For the occasions that I want to shift the buffer I have keys like "zz" > to do this manually.

Re: save the echoed contents command line ?

2006-11-06 Thread A.J.Mechelynck
Yakov Lerner wrote: Is it possible to obtain the contents of the bottom line (which can be result of previous "echo") in the script ? I would like, before making an action that erases the bottom line, to save its contents then restore it ? Thanks Yakov It is possible to intercept (in a regist

Re: noimd don't works under linux

2006-11-06 Thread Eddy Zhao
2006/11/6, Benji Fisher <[EMAIL PROTECTED]>: On Mon, Nov 06, 2006 at 07:28:35PM +0800, Eddy Zhao wrote: > 2006/11/6, Benji Fisher <[EMAIL PROTECTED]>: [snip] > > Part of the problem is that you defined the :map commands with <> > >notation before setting 'nocp'. From another post on this thr

save the echoed contents command line ?

2006-11-06 Thread Yakov Lerner
Is it possible to obtain the contents of the bottom line (which can be result of previous "echo") in the script ? I would like, before making an action that erases the bottom line, to save its contents then restore it ? Thanks Yakov

RE: disappearing echo in ':nmap *'

2006-11-06 Thread Zdenek Sekera
> On Mon, Nov 06, 2006 at 10:55:34AM +0100, Zdenek Sekera wrote: > > > I had many cases of "disappearing echo" in the past, > > > I was mostly able to solve with some or other tricks. This > > > one is difficult, I cannot solve it whatever I try (echo in > > > the rhs of 'nmap *'): > > > > > > 1.

Re: noimd don't works under linux

2006-11-06 Thread Benji Fisher
On Mon, Nov 06, 2006 at 07:28:35PM +0800, Eddy Zhao wrote: > 2006/11/6, Benji Fisher <[EMAIL PROTECTED]>: [snip] > > Part of the problem is that you defined the :map commands with <> > >notation before setting 'nocp'. From another post on this thread, I see > >that you want to try this with gv

Re: disappearing echo in ':nmap *'

2006-11-06 Thread Benji Fisher
On Mon, Nov 06, 2006 at 10:55:34AM +0100, Zdenek Sekera wrote: > > I had many cases of "disappearing echo" in the past, > > I was mostly able to solve with some or other tricks. This > > one is difficult, I cannot solve it whatever I try (echo in > > the rhs of 'nmap *'): > > > > 1. :nnoremap * :e

Re: Lapsus in usr_10.txt?

2006-11-06 Thread Benji Fisher
On Sat, Nov 04, 2006 at 10:01:24PM +0100, Guido Van Hoecke wrote: > Fellow Vimmers, > > Lines 185-186 in usr_10.txt claim > > ... Other flags include p (print), which causes the ":substitute" > command to print out each line it changes. ... > > This is not what happens. > > Line 639 in change.

How to check spelling in xml files? gentoo gwn as an example.

2006-11-06 Thread Peter Volkov
Hello. I have problem with spell cheking in vim. I'm editing .xml file. Now if I set: :set spell spelllang=en vim starts to check spelling but only inside quotes in link tag ( tags where the actuall text is. (Fex, vim does not check here) How can I avoid that? And if you wish to try that behav

Re: ':Explore' higlight the results

2006-11-06 Thread gregory . sacre
A.J.Mechelynck ([EMAIL PROTECTED]) wrote: > [EMAIL PROTECTED] wrote: > >A.J.Mechelynck ([EMAIL PROTECTED]) wrote: > >>Gregory SACRE wrote: > [...] > > Method I: > Try using /PLATFO~1/ instead of /platform view/ (or maybe PLATFO~2 or > PLATFO~3 if you have several LongFileNames starting platfo* in

Re: noimd don't works under linux

2006-11-06 Thread Eddy Zhao
2006/11/6, Benji Fisher <[EMAIL PROTECTED]>: On Sun, Nov 05, 2006 at 03:13:20PM +0800, Eddy Zhao wrote: [snip] > Thanks (I forget to set ls). > > I do the following > - gvim -u NONE > - :set stl=%{&imd} ls=2 > - :inoremap :set imd > - :nnoremap i :set noimdi > - :set nocp > - switching back & fo

Re: ':Explore' higlight the results

2006-11-06 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: A.J.Mechelynck ([EMAIL PROTECTED]) wrote: Gregory SACRE wrote: Hello Chip, I followed your procedure, but unfortunately, the behaviour of netrw surprised me. The installation went fine, no error messages. I tried the following command: :Explore **//STRING to find

Re: ':Explore' higlight the results

2006-11-06 Thread gregory . sacre
A.J.Mechelynck ([EMAIL PROTECTED]) wrote: > Gregory SACRE wrote: > >Hello Chip, > > > >I followed your procedure, but unfortunately, the behaviour of netrw > >surprised me. > > > >The installation went fine, no error messages. > >I tried the following command: > > > > :Explore **//STRING > > > >t

Re: click buffer, go to the buffer place

2006-11-06 Thread A.J.Mechelynck
Akbar wrote: Hi, in my single session, I have many tabs opened, and in one tabs, I often open three windows or more. That means I have many many buffers. Sometimes I want to edit one buffer that I don't know where it is ( in where tab, or in where window ), so I just have to search by iterating f

Re: ':Explore' higlight the results

2006-11-06 Thread A.J.Mechelynck
Gregory SACRE wrote: Hello Chip, I followed your procedure, but unfortunately, the behaviour of netrw surprised me. The installation went fine, no error messages. I tried the following command: :Explore **//STRING to find all the file containing the string STRING. The command just hanged t

click buffer, go to the buffer place

2006-11-06 Thread Akbar
Hi, in my single session, I have many tabs opened, and in one tabs, I often open three windows or more. That means I have many many buffers. Sometimes I want to edit one buffer that I don't know where it is ( in where tab, or in where window ), so I just have to search by iterating from tab to tab

RE: disappearing echo in ':nmap *'

2006-11-06 Thread Zdenek Sekera
> I had many cases of "disappearing echo" in the past, > I was mostly able to solve with some or other tricks. This > one is difficult, I cannot solve it whatever I try (echo in > the rhs of 'nmap *'): > > 1. :nnoremap * :exe "norm! *" echomsg "bla bla" > 2. :help help > 3. /for > 4. press * * *

Re: ':Explore' higlight the results

2006-11-06 Thread Gregory SACRE
Hello Chip, I followed your procedure, but unfortunately, the behaviour of netrw surprised me. The installation went fine, no error messages. I tried the following command: :Explore **//STRING to find all the file containing the string STRING. The command just hanged there, not doing anythi

Re: avoiding unneeded buffer scrolling

2006-11-06 Thread Yakov Lerner
On 11/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: It bothers me how when switching between tabs (gt) or switching between buffers (:bn, :bp), sometimes a buffer will end up being shifted/scrolled up/down within its window. For the occasions that I want to shift the buffer I have keys like

Re: Expansion of ${!x*} and [EMAIL PROTECTED]

2006-11-06 Thread Yakov Lerner
On 11/6/06, Linda W <[EMAIL PROTECTED]> wrote: The manpages for "my" bash's (3.1.11 on Linux and 3.1.17 on cygwin/i686), under Parameter Expansion, has: ${!prefix*} [EMAIL PROTECTED] Expands to the names of variables whose names begin with prefix, separated by the firs

Re: generate a directory listing file with vim.

2006-11-06 Thread Yakov Lerner
On 11/6/06, victor NOAGBODJI <[EMAIL PROTECTED]> wrote: How can I use Vim to generate the listing of a directory? The directory contains images. And a textfile, but I don't want to textfile. Only the images. The output would be in the textfile I was talking about. Each line would represent a pat

Re: generate a directory listing file with vim.

2006-11-06 Thread A.J.Mechelynck
victor NOAGBODJI wrote: Hi, How can I use Vim to generate the listing of a directory? The directory contains images. And a textfile, but I don't want to textfile. Only the images. The output would be in the textfile I was talking about. Each line would represent a path to an image. Do you thin

disappearing echo in ':nmap *'

2006-11-06 Thread Yakov Lerner
I had many cases of "disappearing echo" in the past, I was mostly able to solve with some or other tricks. This one is difficult, I cannot solve it whatever I try (echo in the rhs of 'nmap *'): 1. :nnoremap * :exe "norm! *" echomsg "bla bla" 2. :help help 3. /for 4. press * * * * * * * Message "

generate a directory listing file with vim.

2006-11-06 Thread victor NOAGBODJI
Hi, How can I use Vim to generate the listing of a directory? The directory contains images. And a textfile, but I don't want to textfile. Only the images. The output would be in the textfile I was talking about. Each line would represent a path to an image. Do you think it is possible? How can