complete=custom for path including spaces

2007-03-14 Thread Raphael Bauduin
Hi, I'm writing a command with a custom completion, and it works fine, except when there's a space in the path to complete. For example, without spaces everything works: :Radiant edit pages/hotab will complete to :Radiant edit pages/home/ which I can further complete: :Radiant edit

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread Raphael Bauduin
On 3/14/07, Gary Johnson [EMAIL PROTECTED] wrote: On 2007-03-13, Peng Yu [EMAIL PROTECTED] wrote: Hi, Suppose I use p to paste something, the cursor always goes to the end of the pasted text. Is there any other key to paste will keep the cursor before the pasted text? See :help `[

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread Albie Janse van Rensburg
Raphael Bauduin wrote: Is it possible to jump to a mark at the exact same position in the line as when the mark was set? When I jump to a mark I always get back to the first character of the line. You are using ' instead of ` On my keyboard, ` is on the same key as ~. ` is used to jump to a

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread A.J.Mechelynck
Raphael Bauduin wrote: On 3/14/07, Gary Johnson [EMAIL PROTECTED] wrote: On 2007-03-13, Peng Yu [EMAIL PROTECTED] wrote: Hi, Suppose I use p to paste something, the cursor always goes to the end of the pasted text. Is there any other key to paste will keep the cursor before the pasted

Re: Maximize gvim at startup

2007-03-14 Thread Mark Woodward
Hi Shawn, On Tue, 2007-03-13 at 09:28 -0400, Mr. Shawn H. Corey wrote: Hi, I'm running Ubuntu 6.10 on a PowerBook 4 under GNOME. Is there any command I can put inn my .gvimrc that will maximize the window at startup? I tried: :autocmd GUIEnter * simalt F10 But simalt does not

Re: Maximize gvim at startup

2007-03-14 Thread A.J.Mechelynck
Mark Woodward wrote: Hi Shawn, On Tue, 2007-03-13 at 09:28 -0400, Mr. Shawn H. Corey wrote: Hi, I'm running Ubuntu 6.10 on a PowerBook 4 under GNOME. Is there any command I can put inn my .gvimrc that will maximize the window at startup? I tried: :autocmd GUIEnter * simalt F10 But

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread A.J.Mechelynck
Albie Janse van Rensburg wrote: Raphael Bauduin wrote: Is it possible to jump to a mark at the exact same position in the line as when the mark was set? When I jump to a mark I always get back to the first character of the line. You are using ' instead of ` On my keyboard, ` is on the same

Re: How to paste while keep the cursor at the same place?

2007-03-14 Thread Raphael Bauduin
On 3/14/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Albie Janse van Rensburg wrote: Raphael Bauduin wrote: Is it possible to jump to a mark at the exact same position in the line as when the mark was set? When I jump to a mark I always get back to the first character of the line. You are

gvim hangs when _vimrc loaded and with syntax on

2007-03-14 Thread marc
Strange this. My gvim 7 setup on XP has been working fine for as long as v7 has been available. I'm currently on 7.0.178. Other than that described below, gvim is working fine. If I never load _vimrc, then nothing appears to be wrong. The symptoms are that when I load _vimrc into a buffer, and

Re: gvim hangs when _vimrc loaded and with syntax on

2007-03-14 Thread Greg Dunn
The symptoms are that when I load _vimrc into a buffer, and _vimrc contains syntax on Does this thread help: http://tech.groups.yahoo.com/group/vim/message/76286 Essentially, vim is finding an incompatible tcl84.dll in your path (probably from cygwin, if you have that installed). Assuming

Re: gvim hangs when _vimrc loaded and with syntax on

2007-03-14 Thread A.J.Mechelynck
marc wrote: Strange this. My gvim 7 setup on XP has been working fine for as long as v7 has been available. I'm currently on 7.0.178. Other than that described below, gvim is working fine. If I never load _vimrc, then nothing appears to be wrong. The symptoms are that when I load _vimrc

Re: match html tag

2007-03-14 Thread Akbar
On 3/14/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: matchit. It is distributed with Vim but not installed by default, because it conflict with the vi use of the % key. To install it, use the following shell commands in an xterm or Dos Box: - On Unix/Linux: cd $HOME mkdir -vp

Clearing keymap does not clear the prompt message?

2007-03-14 Thread Yongwei Wu
This behaviour shows up in both vim and gvim. I tested on Windows. When I choose a keymap using either the menu or set keymap=..., and later clear it with the menu or set keymap=, the prompt in insert mode is still -- INSERT (lang) --. Is there a reason for this behaviour? I would expect the

Re: Clearing keymap does not clear the prompt message?

2007-03-14 Thread A.J.Mechelynck
Yongwei Wu wrote: This behaviour shows up in both vim and gvim. I tested on Windows. When I choose a keymap using either the menu or set keymap=..., and later clear it with the menu or set keymap=, the prompt in insert mode is still -- INSERT (lang) --. Is there a reason for this behaviour? I

Re: @=

2007-03-14 Thread Charles E Campbell Jr
Michael Phillips wrote: Would someone please explain the usage of @=. I am getting confuse from the help file. Since TimC gave a good explanation, I won't attempt to repeat it. However, if you're wanting to do Boolean-logic pattern matching, please check out LogiPat, available at my

Re: Case-sensitive match for :e under cygwin?

2007-03-14 Thread John Wiersba
I'm not positive how vim is globbing for files. If it does its own internal globbing, then there must be a switch for case-sensitive globbing, at least in the C code. Probably turned off when it detects it's running on Windows. However, since this is a cygwin version, it shouldn't do that,

How does vim do filename globbing (as in :e file*)

2007-03-14 Thread John Wiersba
In particular, how does it handle case-sensitivity when globbing for files under cygwin. This question is related to another thread Case-sensitive match for :e under cygwin?. I believe vim/cygwin used to do case-sensitve filename globbing, but now it's doing it case-insensitively and I'd like

Re: How does vim do filename globbing (as in :e file*)

2007-03-14 Thread A.J.Mechelynck
John Wiersba wrote: In particular, how does it handle case-sensitivity when globbing for files under cygwin. This question is related to another thread Case-sensitive match for :e under cygwin?. I believe vim/cygwin used to do case-sensitve filename globbing, but now it's doing it

Re: How can a script know if we're running without X ?

2007-03-14 Thread hermitte
A.J.Mechelynck [EMAIL PROTECTED] wrote: The ps solution is difficult to use, because there may be several instances of Vim running in parallel (whose prognames might or might not be different) and I want to make sure to access the current instance: so I would have to know the process ID of the

Re: How does vim do filename globbing (as in :e file*)

2007-03-14 Thread John Wiersba
Yes, there is such a setting. From the related thread Case-sensitive match for :e under cygwin?: For comparison, bash has a nocaseglob option which, if set, matches filenames in a case-insensitive fashion when performing pathname expansion. - Original Message From: A.J.Mechelynck

Re: How can a script know if we're running without X ?

2007-03-14 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: A.J.Mechelynck [EMAIL PROTECTED] wrote: The ps solution is difficult to use, because there may be several instances of Vim running in parallel (whose prognames might or might not be different) and I want to make sure to access the current instance: so I would have to

Re: How can a script know if we're running without X ?

2007-03-14 Thread Dimitar
* A.J.Mechelynck [EMAIL PROTECTED] [070314 07:50]: How can a Vim script know if we're running without an X connection? What about if has('gui') ? Of course, some cases are obvious, such as if has('unix') !has('x11') meaning we're on Unix with no X11 support compiled-in. But

problem with autocommand and --remote

2007-03-14 Thread Travis Hume
For ages I've had this autocmd defined autocmd BufEnter * execute chdir .escape(expand(%:p:h), ' ') Recently I started using vim to edit ruby by invoking it from w/in Eclipse using gvim --server eclipse --remote-silent /path/to/file And the autocmd isn't working for files loaded this way.

register quoteplus

2007-03-14 Thread ego1gri-lugr
Hello, my registers quoteplus and quotestar are no longer working. I made an upgrade from Linux SuSE 10.1 with xterm 208 and vim 7.0 (I think, I installed 7.0) to opensuse 10.2 with xterm 222 and vim 7.0. The to registers and the mapping map shift-F2 :qa!cr were no longer working. But the

Re: How can a script know if we're running without X ?

2007-03-14 Thread A.J.Mechelynck
Dimitar wrote: * A.J.Mechelynck [EMAIL PROTECTED] [070314 07:50]: How can a Vim script know if we're running without an X connection? What about if has('gui') ? No. This wouldn't distinguish a version -gui +x11 +clipboard +clientserver running in a non-x console (with no clipboard and no

Re: complete=custom for path including spaces

2007-03-14 Thread Bram Moolenaar
Raphael Bauduin wrote: I'm writing a command with a custom completion, and it works fine, except when there's a space in the path to complete. For example, without spaces everything works: :Radiant edit pages/hotab will complete to :Radiant edit pages/home/ which I can further

Re: clone a vim session into a new tab

2007-03-14 Thread Bram Moolenaar
Andy Wokula wrote: Ok tabpages are included in the session per default. Try :set sessionoptions-=tabpages first. Awesome! Thanks a lot! :help 'sessionoptions' The help is a bit confusing. It says There is no option to include tab pages yet, only the current

How to convert all the buffers into tab

2007-03-14 Thread lin q
Hi, I usually have such problem: in VIM7 i have many files opened in old way, meaning they are in buffers, now I want to have them opened in TAB, each tab has one buffer. Is there a simple way to do this? Thanks. _ Rates near

register quoteplus - addition

2007-03-14 Thread ego1gri-lugr
In addition to my posting yesterday, i want to add: - I`m working under kde and gnome (the actually versions in the distribution opensuse 10.2; I`m now not at home, therefore can`t say the number). - If I do a selection in vim with the mouse, I can past it, i. e., in an web browser. But I activate

Building Vim7 with perl support using Aap

2007-03-14 Thread Ian Tegebo
I followed the instructions at: http://www.a-a-p.org/ports.html and that installation yielded a vim without perl support. After looking at: http://www.a-a-p.org/examples.html#variants It seems like adding several flags shouldn't be that hard; I could even imagine that recipe files have

Re: Building Vim7 with perl support using Aap

2007-03-14 Thread A.J.Mechelynck
Ian Tegebo wrote: I followed the instructions at: http://www.a-a-p.org/ports.html and that installation yielded a vim without perl support. After looking at: http://www.a-a-p.org/examples.html#variants It seems like adding several flags shouldn't be that hard; I could even imagine that

Re: Building Vim7 with perl support using Aap

2007-03-14 Thread Bram Moolenaar
Ian Tegebo wrote: I followed the instructions at: http://www.a-a-p.org/ports.html and that installation yielded a vim without perl support. After looking at: http://www.a-a-p.org/examples.html#variants It seems like adding several flags shouldn't be that hard; I could even imagine