Re: Vim-7.0f: error in help for :tabmove

2006-04-25 Thread Bram Moolenaar
Gary Johnson wrote: :help :tabmove now (in 7.0f) contains this: *:tabm* *:tabmove* :tabmove NMove the current tab page to after tab page N. Use zero to make the current tab page the first one. Without N the tab

Re: some problem with vim7f Beta

2006-04-25 Thread Bram Moolenaar
Vincent Linsong wrote: I just try the fresh vim7f Beta on my ubuntu box, found some problems: 1. the behavior of omnicompletion is changed I set completeopt=menu,preview,longest in vim7d beta, when I input something then press C-XC-O, the completion

Re: some problem with vim7f Beta

2006-04-25 Thread Linsong
Bram Moolenaar wrote: Vincent Linsong wrote: I just try the fresh vim7f Beta on my ubuntu box, found some problems: 1. the behavior of omnicompletion is changed I set completeopt=menu,preview,longest in vim7d beta, when I input something then press C-XC-O,

vim70f, no hyphen-suggestions, dictionary bug(?)

2006-04-25 Thread Milan Berta
Hello Vim-Dev, Is this only my problem, or is this really a bug? There are no suggestions with hyphen - in the list of suggestions (for example, on z= request in normal mode. There are a lot of possibilities with the hyphen in long words (especially in English). But they are just not shown.

Re: Vim 7.0f BETA

2006-04-25 Thread Neil Bird
Around about 25/04/06 08:48, Yakov Lerner typed ... feedkeys({string} [, {mode}]) *feedkeys()* Characters in {string} are queued for processing as if they come from a mapping or where typed by user. They are added to

Re: vim70f, no hyphen-suggestions, dictionary bug(?)

2006-04-25 Thread Bram Moolenaar
Milan Berta wrote: Is this only my problem, or is this really a bug? There are no suggestions with hyphen - in the list of suggestions (for example, on z= request in normal mode. There are a lot of possibilities with the hyphen in long words (especially in English). But they are just not

Re: some problem with vim7f Beta

2006-04-25 Thread Bram Moolenaar
Vincent Linsong wrote: This is by design. Some people mentioned that when using the longest common string the first entry should not be selected. Now you can use CTRL-N to select the first entry. Previously you would need to do CTRL-N CTRL-P to get the first entry. I use the

Re: :for var in list

2006-04-25 Thread James Vega
On Tue, Apr 25, 2006 at 02:21:07PM -0400, Charles E Campbell Jr wrote: Hello! I know this is a late date, but I think it would be helpful if for var in list ... endfor would complete with var= . For example where this might come in handy: for home in split(rtp,',') if

Re: :for var in list

2006-04-25 Thread Charles E Campbell Jr
James Vega wrote: On Tue, Apr 25, 2006 at 02:21:07PM -0400, Charles E Campbell Jr wrote: I know this is a late date, but I think it would be helpful if for var in list ... endfor would complete with var= . For example where this might come in handy: for home in split(rtp,',') if

Re: :for var in list

2006-04-25 Thread Bram Moolenaar
Charles Campbell wrote: I know this is a late date, but I think it would be helpful if for var in list ... endfor would complete with var= . For example where this might come in handy: for home in split(rtp,',') if isdirectory(home) | break | endif endfor So, if the

Re: :for var in list

2006-04-25 Thread Charles E Campbell Jr
Bram Moolenaar wrote: Charles Campbell wrote: I know this is a late date, but I think it would be helpful if for var in list ... endfor would complete with var= ... This for loop is like it is in Python, and it has proven to be very useful. It's easy to add something to the

Re: :for var in list

2006-04-25 Thread Mike Steed
On Tue, Apr 25, 2006 at 10:32:35PM +0200, Bram Moolenaar wrote: This for loop is like it is in Python, and it has proven to be very useful. It's easy to add something to the list if you want to loop over more things. E.g.: for home in split(rtp,',') + [''] if

Re: some problem with vim7f Beta

2006-04-25 Thread Linsong
Bram Moolenaar wrote: Hi, Bram Thanks for your reply! Vincent Linsong wrote: This is by design. Some people mentioned that when using the longest common string the first entry should not be selected. Now you can use CTRL-N to select the first entry. Previously you would need to do

Re: Vim 7.0f BETA

2006-04-25 Thread Yakov Lerner
On 4/25/06, Robert Cussons [EMAIL PROTECTED] wrote: Bram's last announcement mentioned: - Added the feedkeys() function: put keys in the typeahead queue. Is this something that has been just added in Vim 7.0 or is it added in the sense of it had been left out of Vim 7.0 by mistake and has

Re: showing C declarations

2006-04-25 Thread Kyku
[EMAIL PROTECTED] wrote: Is there any vim plugin that shows a function declaration if I type the function name? For example, if I type memset( it should show the memset function declaration (at least its type of arguments). Thanks, Malahal. Hello, as is Vim doesn't seem to support

Re: showing C declarations

2006-04-25 Thread Yakov Lerner
[EMAIL PROTECTED] wrote: Is there any vim plugin that shows a function declaration if I type the function name? For example, if I type memset( it should show the memset function declaration (at least its type of arguments). I think K command is the closest vim thing to what you ask: It

Re: Vim 7.0f BETA

2006-04-25 Thread Eric Arnold
't' sound promising (you might want to add the below explanation or something to the help file). I'm trying to use the 't' key to funnel input to the : and / prompt from inside a script. I'm finding that using feedkeys() in conjunction with getchar() causes Vim to hang in some loop: let

Re: C++ omnicomplete modification.

2006-04-25 Thread Mikolaj Machowski
Dnia wtorek, 25 kwietnia 2006 11:24, Kyku napisaƂ: Hello, Brave C++ Coders. If you want omnicopletion to work for C++ classes, structs and unions, you can insert the following small code snippet after line 406 of $VIMRUNTIME/autoload/ccomplete.vim: Maybe you want to just maintain

Re: failure to create de .spl files via aap

2006-04-25 Thread Bram Moolenaar
Christian Ebert wrote: Following the README's suggestion not to bother with creating .spl files by hand (which I did some time ago eg. with de.latin1.spl) I tried to go the easier way via aap in vim7.e07. Creating the french fr.latin1.spl, fr.latin1.sug, fr.utf-8.spl, fr.utf-8.sug works

Re: C++ omnicomplete modification.

2006-04-25 Thread Neil Bird
Around about 25/04/06 10:24, Kyku typed ... If you want omnicopletion to work for C++ classes, structs and unions, you can insert the following small code snippet after line 406 of $VIMRUNTIME/autoload/ccomplete.vim: Line 406 of which version? What lines should it come after? -- [EMAIL

Re: Minor bug :marks col vals?

2006-04-25 Thread Benji Fisher
On Sat, Apr 22, 2006 at 04:39:58AM -0600, Eric Arnold wrote: I just noticed that :marks has the first column as 0. I see it, too. If I do ma (in Normal mode, without the quotes) and then :echo col('a) :marks the results are off by one. I am getting behind: vim 7.0e. HTH

c-o vs. esc and gi

2006-04-25 Thread Halim, Salman
Hello, I just noticed something I thought I had seen before but wasn't sure; I have the following mappings in my _vimrc: nmap f2 :updatecr imap f2 c-of2 This allows me to hit f2 to save the current buffer if it has been modified (I think it's from the Borland Pascal days) and leaves me in the

Re: c-o vs. esc and gi

2006-04-25 Thread Yakov Lerner
On 4/25/06, Halim, Salman [EMAIL PROTECTED] wrote: nmap f2 :updatecr imap f2 c-of2 The inconsistency I have noticed is when I am at the end of a line, typing away (making the line longer). If, while in insert mode, I hit f2, it performs the update, but leaves the cursor just before the

RE: c-o vs. esc and gi

2006-04-25 Thread Halim, Salman
Hmm.. My imap is definitely invoked (it does the save just fine; it just moves the cursor). I don't have any InsertEnter or InsertLeave autocommands, either (Vim 7f). I guess it must be some setting somewhere -- I'll start with a clean Vim and see what happens, unless someone else can shed some

Vim GUI repositioning itself - Windows / extended monitors

2006-04-25 Thread David Fishburn
Vim70F I use WinXP SP2. Windows has the ability to Extend your monitor on to another monitor. So, my laptop is plugged into an external monitor at work. I then extend the screen to fill the secondary monitor which gives me 1 logical monitor that is 2 screens wide. This seems to be a new

Re: C++ omnicomplete modification.

2006-04-25 Thread Kyku
Neil Bird wrote: Around about 25/04/06 10:24, Kyku typed ... If you want omnicopletion to work for C++ classes, structs and unions, you can insert the following small code snippet after line 406 of $VIMRUNTIME/autoload/ccomplete.vim: Line 406 of which version? What lines should it come

Re: help tags - inclusive/exclusive/mswin behavior

2006-04-25 Thread Eric Arnold
:set selection=inclusive doesn't help me either, however as it turns out I just added a mapping that traps tag keys in help windows to WinWalker for other reasons (i.e. tags which turn folding on and off). I just tweaked it, and now it handles clicking on the trailing pipe char. On 4/25/06,

Re: C++ omnicomplete modification.

2006-04-25 Thread Bram Moolenaar
Kyku wrote: Neil Bird wrote: Around about 25/04/06 10:24, Kyku typed ... If you want omnicopletion to work for C++ classes, structs and unions, you can insert the following small code snippet after line 406 of $VIMRUNTIME/autoload/ccomplete.vim: Line 406 of which version? What

Re: Minor bug :marks col vals?

2006-04-25 Thread Bram Moolenaar
Benji Fisher wrote: On Sat, Apr 22, 2006 at 04:39:58AM -0600, Eric Arnold wrote: I just noticed that :marks has the first column as 0. I see it, too. If I do ma (in Normal mode, without the quotes) and then :echo col('a) :marks the results are off by one. I am

Re: Minor bug :marks col vals?

2006-04-25 Thread Eric Arnold
It isn't a big deal, but I don't know of anywhere in Vim where 0 is a valid column. String index, maybe but... On 4/25/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Benji Fisher wrote: On Sat, Apr 22, 2006 at 04:39:58AM -0600, Eric Arnold wrote: I just noticed that :marks has the first

Re: some problem with vim7f Beta

2006-04-25 Thread Bram Moolenaar
Vincent Linsong wrote: This is by design. Some people mentioned that when using the longest common string the first entry should not be selected. Now you can use CTRL-N to select the first entry. Previously you would need to do CTRL-N CTRL-P to get the first entry. I use the

Re: showing C declarations

2006-04-25 Thread malahal
I know the 'K' thing. It only works if there is a man page. Also, you need to go to normal mode from insert mode (C-O will help a little). More over, I like it show any function declaration from my own header files. I really want a file type plugin/script that does this. Thank you for your

Re: Font names - manual page found

2006-04-25 Thread dax2
On Mon, 24 Apr 2006 15:29:26 +0200 Andrei wrote: fontconfig [...] Ah - the style, binding etc. is in manual page fonts-conf. /Donald -- dax2-tele2adsl:dk -- http://d-axel.dk/ Donald Axel

Re: Input using meta key under different encoding

2006-04-25 Thread Yakov Lerner
On 4/25/06, Dave Roberts [EMAIL PROTECTED] wrote: I find that if I'm in latin1 and (in insert mode) type ctrl-v alt-n to insert the character then get get out of insert mode and put the cursor on the character and use ga to see what it is I get M-n but if I do the same thing when the encoding

describe-bindings in VIM ?

2006-04-25 Thread Meino Christian Cramer
Hi, is there an equivalent or similiar to the emacs command describe-bindings, which dumps a list of all keys, which are bind to function and therefore available via key shortcuts ? Thank you very much for any help in advance ! mcc

Re: some problem with vim7f Beta

2006-04-25 Thread Linsong
Bram Moolenaar wrote: Hi, Bram Thanks for your reply! Vincent Linsong wrote: This is by design. Some people mentioned that when using the longest common string the first entry should not be selected. Now you can use CTRL-N to select the first entry. Previously you would need to do

Re: Insert Visual mode

2006-04-25 Thread Benji Fisher
On Sat, Apr 22, 2006 at 11:11:33AM -0700, Gerald Lai wrote: From Normal mode, typing i will elicit -- INSERT -- Then typing C-ov will elicit -- (insert) VISUAL -- My question is, what keystroke will elicit -- INSERT VISUAL -- ? AFAIK there is no such mode. Have you

Using pumvisible() - vim70f

2006-04-25 Thread David Fishburn
I want to write a conditional imap that will only be active when the OMNI completion popup window is active. I can't quite get this to work. I have tried a few combinations of imaps: imap buffer c-right C-R=pumvisible()?\ltC-Y\ltC-\\ltC-O:call sqlcomplete#Map('column')\ltCR\ltC-X\ltC-O\ltCR:CR

Re: Distinguishing Maxima (computer algebra) scripts from assembler files

2006-04-25 Thread Benji Fisher
On Sat, Apr 22, 2006 at 01:10:56PM -0600, Robert Dodier wrote: Hello everyone, Vim rocks. There, I had to get it off my chest. 8^) I have created a syntax colorization file for scripts written for the Maxima computer algebra system (http://maxima.sf.net). Typically these scripts are named

Re: line,col regex works with match not syn match..

2006-04-25 Thread Benji Fisher
On Sun, Apr 23, 2006 at 06:54:27AM -0600, Eric Arnold wrote: I don't think I have a prioritization/conflict problem, since I'm testing in a buffer without any other syntax (using only one match or syn match at a time), and against lines containing only [a-z] (though it was informative to read

Re: Using pumvisible() - vim70f

2006-04-25 Thread Yegappan Lakshmanan
Hi David, On 4/25/06, David Fishburn [EMAIL PROTECTED] wrote: I want to write a conditional imap that will only be active when the OMNI completion popup window is active. I can't quite get this to work. I have tried a few combinations of imaps: imap buffer c-right

Making * search for strings

2006-04-25 Thread Suresh Govindachar
Hello, By default, * searches for words: /\stuff_below_cursor\ but I would like it to search for strings: /stuff_below_cursor One way is to use the following map * yiw:let @/[EMAIL PROTECTED]cr Is there a better way? (/yiw didn't work.) Thanks, --Suresh

Re: Making * search for strings

2006-04-25 Thread Eric Arnold
You could also change iskeyword to contain more characters, though I suppose that could have side effects. On 4/25/06, Suresh Govindachar [EMAIL PROTECTED] wrote: Hello, By default, * searches for words: /\stuff_below_cursor\ but I would like it to search for strings:

Re: some problem with vim7f Beta

2006-04-25 Thread Georg Dahn
This behavior of C-N and C-P is not new, it was the same befor, too, not only in Vim 7. It is not wise to change it and BTW, it is a good behavior for most people. My main point is: I don't want to select entry in the completion menu by pressing CTRL-N or CTRL-P, instead, I want to input

Re: Making * search for strings

2006-04-25 Thread Gerald Lai
On Tue, 25 Apr 2006, Suresh Govindachar wrote: Hello, By default, * searches for words: /\stuff_below_cursor\ but I would like it to search for strings: /stuff_below_cursor One way is to use the following map * yiw:let @/[EMAIL PROTECTED]cr Is there a better way? (/yiw didn't

Could find where the error is coming from

2006-04-25 Thread SHANKAR R-R66203
I am using tags to browse the code. For the first time, when I press CTRL-] to enter a module, everything works properly. But when I press the CTRL-] second time onwards, I get this annoying Error message. --- Error detected while