Differences with vim 7

2006-07-31 Thread Robert Cussons
I just installed vim 7 on my linux system at work (more specifically debian sarge running KDE 3.3) and I get a few funny things happening. It is installed in my home/bin directory as I don't have root permissions. All comments seem to come out underlined and the fonts for everything including

unmapping thinkpad back forward key?

2006-07-31 Thread Jiang Qian
Hi All: I've been out of clue with this one: I have a thinkpad notebook, which has backward and forward key just above arrow back and arrow forward. In X, I add the lines to ~/.Xmodmap: keycode 234=F19 keycode 233=F20 to map the two keys to something useful. If I use gvim and type the Forward

augroup! not working for VimLeave

2006-07-31 Thread Christian Ebert
Hello, Consider the following: augroup TestLeave au! au VimLeave * echo hello augroup END Now if I do: :augroup! TestLeave TestLeave is still echoing hello. Whereas if I do: :au! TestLeave TestLeave is deleted. Is this a case covered by:

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
Peter Hodge wrote: Some GUIs will allow you to use the command set guifont=* Which brings up a font selection window. If that works, you can select a font and then use set guifont to find out exactly what to add to your .vimrc regards, Peter --- Yakov Lerner [EMAIL PROTECTED] wrote:

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
Robert Cussons wrote: Peter Hodge wrote: Some GUIs will allow you to use the command set guifont=* Which brings up a font selection window. If that works, you can select a font and then use set guifont to find out exactly what to add to your .vimrc regards, Peter --- Yakov Lerner

au! failure in vimrc

2006-07-31 Thread Bill McCarthy
Hello Vim List, Suppose two plugins define autocmds, so after start Vim, :au FuncUndefined displays: * call AsNeeded(1,expand(afile)) Tlist_* source C:\vim\vimfiles\plugin\taglist.vim Now I add a line to my _vimrc: au! FuncUndefined * call Foo() Now after starting

Re: augroup! not working for VimLeave

2006-07-31 Thread Gary Johnson
On 2006-07-31, Christian Ebert [EMAIL PROTECTED] wrote: Hello, Consider the following: augroup TestLeave au! au VimLeave * echo hello augroup END Now if I do: :augroup! TestLeave TestLeave is still echoing hello. Whereas if I do: :au! TestLeave TestLeave is deleted.

Re: au! failure in vimrc

2006-07-31 Thread Peter Hodge
Hi Bill, vimrc is read before plugins, so your au! command in .vimrc can't replace the AsNeeded autocommand because AsNeeded hasn't been defined yet. regards, Peter --- Bill McCarthy [EMAIL PROTECTED] wrote: Hello Vim List, Suppose two plugins define autocmds, so after start Vim,

Re: au! failure in vimrc

2006-07-31 Thread Jürgen Krämer
Hi, Bill McCarthy wrote: Suppose two plugins define autocmds, so after start Vim, :au FuncUndefined displays: * call AsNeeded(1,expand(afile)) Tlist_* source C:\vim\vimfiles\plugin\taglist.vim Now I add a line to my _vimrc: au! FuncUndefined * call

Re: augroup! not working for VimLeave

2006-07-31 Thread Christian Ebert
* Gary Johnson on Monday, July 31, 2006 at 01:13:10 -0700: To paraphrase Will Rogers: All I know is what I read in the manual. heh :help :autocmd-remove says, :au[tocmd]! [group] Remove ALL autocommands. And as you discovered, :help augroup-delete says not to execute

Re: unmapping thinkpad back forward key?

2006-07-31 Thread panshizhu
Jiang Qian [EMAIL PROTECTED] wrote on 2006.07.31 15:32:15: Hi All: I've been out of clue with this one: I have a thinkpad notebook, which has backward and forward key just above arrow back and arrow forward. In X, I add the lines to ~/.Xmodmap: keycode 234=F19 keycode 233=F20 to map the

Re: au! failure in vimrc

2006-07-31 Thread Bill McCarthy
Jürgen and Peter, vimrc is read before plugins, so your au! command in .vimrc can't replace the AsNeeded autocommand because AsNeeded hasn't been defined yet. Thanks for your quick responses. It must be too late here. Of course _vimrc is processed before the plugins. I've made my

Re: AsNeeded?

2006-07-31 Thread Bill McCarthy
I solved the conflict between AsNeeded.vim and taglist.vim by overriding the FuncUndefined autocmd in AsNeeded.vim. I created fixup.vim in vimfiles\after\plugin with one line: autocmd! FuncUndefined * \ if expand(afile) !~# Tlist \ expand(afile) !~# TagList \|

Re: Running win32 vim and gvim under Cygwin and pure Windows XP

2006-07-31 Thread Gary Johnson
On 2006-07-27, Luc Hermitte [EMAIL PROTECTED] wrote: More over I don't have any c:/ drive, and the shell can be anything. I'm having a little trouble understanding how the shell can be anything. What I think you're saying, and what I've understood from reading your web pages, is that you

Re: Differences with vim 7

2006-07-31 Thread Yakov Lerner
On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: Robert Cussons wrote: Peter Hodge wrote: Some GUIs will allow you to use the command set guifont=* Which brings up a font selection window. If that works, you can select a font and then use set guifont to find out exactly what

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
Yakov Lerner wrote: 1. In vim6.3 , try :set guifont? and select the font name with mouse 2. In vim7, try :set guifont=xxx where xxx if font name as you selected it from vim6.3 If you get the right font, then put this :set guifont=xxx line into .vimrc Yakov Hi Yakov, :set guifont?

Add to jumplist

2006-07-31 Thread SHANKAR R-R66203
Hi, Is there a function, to add the line under the cursor to the jump-list ? This may sound strange. I am coding a function in which from the current line, the cursor moves to a different line or a file altogather. I want a way to come back if needed by the CTRL-O command Shankar

Re: Add to jumplist

2006-07-31 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: Is there a function, to add the line under the cursor to the jump-list ? This may sound strange. I am coding a function in which from the current line, the cursor moves to a different line or a file altogather. I want a way to come back if needed by the

Re: Differences with vim 7

2006-07-31 Thread Yakov Lerner
On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: Yakov Lerner wrote: 1. In vim6.3 , try :set guifont? and select the font name with mouse 2. In vim7, try :set guifont=xxx where xxx if font name as you selected it from vim6.3 If you get the right font, then put this :set

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
Yakov Lerner wrote: On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: Yakov Lerner wrote: 1. In vim6.3 , try :set guifont? and select the font name with mouse 2. In vim7, try :set guifont=xxx where xxx if font name as you selected it from vim6.3 If you get the right font,

Re: windows unicode (iso10646-1) font for vim

2006-07-31 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: A.J.Mechelynck [EMAIL PROTECTED] wrote on 2006.07.31 01:17:38: Dr. Johannes Zellner wrote: Hello, Apparently, there are only very few monospaced unicode fonts in Windows which can be used with vim. On Linux I like to use for example the efont unicode font for

Re: au! failure in vimrc

2006-07-31 Thread A.J.Mechelynck
Bill McCarthy wrote: Hello Vim List, Suppose two plugins define autocmds, so after start Vim, :au FuncUndefined displays: * call AsNeeded(1,expand(afile)) Tlist_* source C:\vim\vimfiles\plugin\taglist.vim Now I add a line to my _vimrc: au! FuncUndefined * call

Vim and cscope

2006-07-31 Thread Sibin P. Thomas
Hi, I tried integrating Cscope 15.4 with Vim7.0 on WinXP (I have installed cygwin too); but whenever I try to use cscope in Vim I get the following error - E623: Could not spawn cscope process. Has anyone come across this problem before and more importantly found a solution?

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
Robert Cussons wrote: Peter Hodge wrote: Some GUIs will allow you to use the command set guifont=* Which brings up a font selection window. If that works, you can select a font and then use set guifont to find out exactly what to add to your .vimrc regards, Peter --- Yakov

Re: Differences with vim 7

2006-07-31 Thread A.J.Mechelynck
Robert Cussons wrote: Robert Cussons wrote: Peter Hodge wrote: Some GUIs will allow you to use the command set guifont=* Which brings up a font selection window. If that works, you can select a font and then use set guifont to find out exactly what to add to your .vimrc regards,

Re: Differences with vim 7

2006-07-31 Thread Yakov Lerner
On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: Robert Cussons wrote: Peter Hodge wrote: Some GUIs will allow you to use the command set guifont=* Which brings up a font selection window. If that works, you can select a font and then use set guifont to find out exactly

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
snip Are those two vims built with same GUI libraries ? I suspect that they are build with different GUIs. Can you send first 4 lines out :version output from each of two vims ? Yakov P.S. I remember that I had similar issue between one Qt-based program and similar Xt-based program. I set

Re: PCBSD error

2006-07-31 Thread Yakov Lerner
On 7/31/06, Robin Becker [EMAIL PROTECTED] wrote: Robin Becker wrote: ... I've checked and it's not actually Konsole that causes this. I see the same with a standard console or xterm. I believe the message comes very early. I think I'm going to try and install Vim from the ports rather

Re: Differences with vim 7

2006-07-31 Thread Yakov Lerner
On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: snip Are those two vims built with same GUI libraries ? I suspect that they are build with different GUIs. Can you send first 4 lines out :version output from each of two vims ? Yakov P.S. I remember that I had similar issue between

Re: Differences with vim 7

2006-07-31 Thread Yakov Lerner
On 7/31/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: snip Are those two vims built with same GUI libraries ? I suspect that they are build with different GUIs. Can you send first 4 lines out :version output from each of two vims ?

RE: Vim and cscope

2006-07-31 Thread David Fishburn
-Original Message- From: Sibin P. Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 6:25 AM ... I tried integrating Cscope 15.4 with Vim7.0 on WinXP (I have installed cygwin too); but whenever I try to use cscope in Vim I get the following error - E623: Could not

Re: Running win32 vim and gvim under Cygwin and pure Windows XP

2006-07-31 Thread hermitte
Hello, Gary Johnson [EMAIL PROTECTED] wrote: On 2006-07-27, Luc Hermitte [EMAIL PROTECTED] wrote: More over I don't have any c:/ drive, and the shell can be anything. I'm having a little trouble understanding how the shell can be anything. I just meant it can be bash, sh, tcsh, ksh, ...

Re: Differences with vim 7

2006-07-31 Thread A.J.Mechelynck
Yakov Lerner wrote: On 7/31/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: snip Are those two vims built with same GUI libraries ? I suspect that they are build with different GUIs. Can you send first 4 lines out :version output from

ViM on 2. monitor

2006-07-31 Thread Alexander 'boesi' Bösecke
Hi I have 2 monitors - the first is attached to an AGP-card (Nvidia GF TI2) and the second one is attached to a PCI-card (Matrox G400 DH). If I'm running ViM on the 1. monitor, all works fine. But when ViM is on the 2. monitor, the display speed is horribly slow. For example it takes 5 (five!)

RE: Vim and cscope

2006-07-31 Thread Sibin P. Thomas
Thanks for the reply, but the problem persists. Is there somehow I could get hold of the source of this version of cscope? Regards, Sibin -Original Message- From: David Fishburn [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 6:12 PM To: Sibin P. Thomas Cc: vim@vim.org Subject:

Re: ViM on 2. monitor

2006-07-31 Thread A.J.Mechelynck
Alexander 'boesi' Bösecke wrote: Hi I have 2 monitors - the first is attached to an AGP-card (Nvidia GF TI2) and the second one is attached to a PCI-card (Matrox G400 DH). If I'm running ViM on the 1. monitor, all works fine. But when ViM is on the 2. monitor, the display speed is horribly

Re: PCBSD error

2006-07-31 Thread Yakov Lerner
On 7/31/06, Robin Becker [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 7/31/06, Robin Becker [EMAIL PROTECTED] wrote: Robin Becker wrote: ... I've checked and it's not actually Konsole that causes this. I see the same with a standard console or xterm. I believe the message comes

Re: PCBSD error

2006-07-31 Thread A.J.Mechelynck
Robin Becker wrote: A.J.Mechelynck wrote: Robin Becker wrote: .. 'guifontset' being empty is usually not a problem; and 'guifont' can be empty (giving some default font); but in any case you need fonts installed at a place where gvim can find them in order to run it as a GUI. You

Disable spell for certain filetypes

2006-07-31 Thread C Rose
Hi Is it possible to tell vim 7 to use spell in general, but not for files with specific filename extensions? Thanks in advance C

Re: AsNeeded?

2006-07-31 Thread Charles E Campbell Jr
Bill McCarthy wrote: Chip, I tried again with just AsNeeded and taglist in my vimfiles\plugin and vimfiles\doc - otherwise an empty vimfiles tree - and fairly minimalist _vimrc and _gvimrc (see below my sig). I opened an edit session on a small project with 25 .c or .h files: gvim *.c

Re: Disable spell for certain filetypes

2006-07-31 Thread Kim Schulz
On Mon, 31 Jul 2006 15:52:01 +0100 C Rose [EMAIL PROTECTED] wrote: Hi Is it possible to tell vim 7 to use spell in general, but not for files with specific filename extensions? Thanks in advance maybe somthing like: set spell autocmd BufLoad *.c setlocal nospell -- Kim Schulz|

Re: Disable spell for certain filetypes

2006-07-31 Thread A.J.Mechelynck
C Rose wrote: Hi Is it possible to tell vim 7 to use spell in general, but not for files with specific filename extensions? Thanks in advance C :set spell :autocmd FileType c,cpp,lisp setlocal nospell Replace the list of comma-separated filetypes by whatever you want.

Re: Disable spell for certain filetypes

2006-07-31 Thread C Rose
Many thanks Tony, C A.J.Mechelynck wrote: C Rose wrote: Hi Is it possible to tell vim 7 to use spell in general, but not for files with specific filename extensions? Thanks in advance C :set spell :autocmd FileType c,cpp,lisp setlocal nospell Replace the list of

Re: PCBSD error

2006-07-31 Thread Robin Becker
A.J.Mechelynck wrote: ... and that seems to do stuff with -DFEAT_GTK12 flags etc etc, but still no fonts. xlsfonts shows a big list, but I don't know what part of the font name to pass in to set guifont. Certainly Courier/10 didn't seem to work :( I can actually get the makefile to

Help with unwanted shell character expansion

2006-07-31 Thread Bob Hiestand
Question one: Is there a way to achieve execution of system commands without using the shell? Here I'm thinking (for example) of, in perl, the difference between using a single argument to exec() and using multiple arguments. In the first version, shell characters are expanded, in the second,

Re: Help with unwanted shell character expansion

2006-07-31 Thread A.J.Mechelynck
Bob Hiestand wrote: Question one: Is there a way to achieve execution of system commands without using the shell? Here I'm thinking (for example) of, in perl, the difference between using a single argument to exec() and using multiple arguments. In the first version, shell characters are

Re: Running win32 vim and gvim under Cygwin and pure Windows XP

2006-07-31 Thread Gary Johnson
On 2006-07-31, [EMAIL PROTECTED] wrote: Gary Johnson [EMAIL PROTECTED] wrote: I just installed rxvt using Cygwin setup.exe and it seems to work fine except when I execute vim: then my CPU usage goes to 50% and I can see vim.exe in the Task Manager process list, but vim never appears in

indents when copying and pasting

2006-07-31 Thread luke
Hi Guys. I really like this list. Everyone is so helpful. That's not just a suck-up (-: I have the following problem: When I cut and paste on my linux box, from one vi instance to another, I get all the indents of the 'from' file in addition to the indents that get inserted on newline. Iow.

Re: indents when copying and pasting

2006-07-31 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hi Guys. I really like this list. Everyone is so helpful. That's not just a suck-up (-: I have the following problem: When I cut and paste on my linux box, from one vi instance to another, I get all the indents of the 'from' file in addition to the indents that get

Re: indents when copying and pasting

2006-07-31 Thread Gary Johnson
On 2006-08-01, [EMAIL PROTECTED] wrote: I have the following problem: When I cut and paste on my linux box, from one vi instance to another, I get all the indents of the 'from' file in addition to the indents that get inserted on newline. [...] Obviously I have my editor set so it

Re: Howto get omnicomplete popup for vimspell suggestions

2006-07-31 Thread Srinivas Rao. M
bumping it up ? Any methods to get omni complete for spell checkers ? TIA, On Fri, 2006-07-28 at 10:45, Srinivas Rao. M wrote: From where I sit it looks like z= opens neither buffer nor popup, but lists the alternatives on the command-line (pushing all windows up out of the screen)

Clearing Jumplist

2006-07-31 Thread SHANKAR R-R66203
Hi All, When I open a particular file, I want to clear all the jumplist. How do I do that ? Is there any function when called clears the jumplist. Regards, Shankar Shankar Ramakrishnan Design Engineer MicroController Division Freescale Semiconductor NOIDA - 201 301, INDIA Mobile :

Re: Clearing Jumplist

2006-07-31 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: When I open a particular file, I want to clear all the jumplist. How do I do that ? Is there any function when called clears the jumplist. I don't think there is a function for this. The best way I could think of is to set the jumplist to the same

Re: PCBSD error

2006-07-31 Thread A.J.Mechelynck
Cc to vim-dev list. Robin Becker wrote: A.J.Mechelynck wrote: Robin Becker wrote: A.J.Mechelynck wrote: Robin Becker wrote: .. 'guifontset' being empty is usually not a problem; and 'guifont' can be empty (giving some default font); but in any case you need fonts installed at a

vim -S

2006-07-31 Thread Rodolfo Borges
I made a file with vim commands, starting with #!/usr/bin/vim -S so I can execute the file directly, instead of using vim -S file. The problem is that vim tries to execute this first line too. Can we have a workaround on this? Like, ignoring #! at the start of a command, instead of giving the no

Re: Bug: Can't select bottom window by mouse-clicking

2006-07-31 Thread Charles E Campbell Jr
A.J.Mechelynck wrote: Can't select bottom window by mouse-clicking Happens every time. How to reproduce: 1. :set ch=2 wmh=0 wh= don't know if relevant 2. Open at least two horizontally split windows 3. Make some window current, other than the bottom one 4. Click the bottom status line.

Re: Bug: Can't select bottom window by mouse-clicking

2006-07-31 Thread A.J.Mechelynck
Charles E Campbell Jr wrote: A.J.Mechelynck wrote: Can't select bottom window by mouse-clicking Happens every time. How to reproduce: 1. :set ch=2 wmh=0 wh= don't know if relevant 2. Open at least two horizontally split windows 3. Make some window current, other than the bottom one 4.

Re: vim -S

2006-07-31 Thread Nikolai Weibull
On 8/1/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Rodolfo Borges wrote: I made a file with vim commands, starting with #!/usr/bin/vim -S so I can execute the file directly, instead of using vim -S file. The problem is that vim tries to execute this first line too. Method I: -8-

Re: vim -S

2006-07-31 Thread mwoehlke
A.J.Mechelynck wrote: Rodolfo Borges wrote: I made a file with vim commands, starting with #!/usr/bin/vim -S so I can execute the file directly, instead of using vim -S file. The problem is that vim tries to execute this first line too. Can we have a workaround on this? Like, ignoring #! at