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 path

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 first

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

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

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

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

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 (link=here vim checks). And that is all where vim checks spelling. But it does not check text inside p /p tags where the

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.txt

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 * :exe norm! *

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 gvim, not

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

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

[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 the first

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

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 manually. I don't

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:

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 let

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 call

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#Test()

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 lets try opening a

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: 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: 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

Re: warnings: O_NOFOLLOW redefined.

2006-11-06 Thread Bram Moolenaar
Maurice Barnum wrote: Bram Moolenaar [EMAIL PROTECTED] writes: : Including fcntl.h was needed in only a few files in the past, that's why : it's included in individual .c files. But we might as well move it to : vim.h now, since it's used by quite few .c files. : Did you try including