Re: completion menu

2006-04-20 Thread Linsong
Chris Allen wrote: On 4/20/06, Linsong <[EMAIL PROTECTED]> wrote: I also think here is a little confusing. Since the user are selecting menu items with /, and at this time, Enter is normally assumed as a confirm of the selection. And I think it is very common a user interface convention.

Re: Feature request: for abbreviations

2006-04-20 Thread Bram Moolenaar
Hari Krishna Dara wrote: > In Vim7, I see that maps can now have argument to indicate that > the RHS is an expression that should be evaluated. I think this is cool, > and though I don't have a need yet, I am pretty sure it will come to > good use soon. But meanwhile, I think the same should be

Re: vim7: request for new autocommands

2006-04-20 Thread Bram Moolenaar
Hari Krishna Dara wrote: > On the lines of InsertEnter and InsertLeave, can we please have > CommandEnter and CommandLeave that will get triggered when the user > starts one of the :, /, ?, = etc. modes? The reason I ask is, with the > addition of getcmdtype(), it is now possible to create maps a

Re: request for / termcap entries in vim

2006-04-20 Thread Bram Moolenaar
Gautam Iyer wrote: > > > I was wondering if it would be possible to add the termcap entries > > > , , and and to Vim 7 (for keypad > > > keys)? > > > > > > I really like the '*' form of entering key codes. I hacked mrxvt so that > > > modified cursor, function or keypad keys produce escape se

Re: omni-completion: info bug

2006-04-20 Thread Bram Moolenaar
Aaron Griffin wrote: > Just a "heads up": > > Using an omni-completion dictionary, a single completion entry (for > which no menu is displayed) does not update the info preview window. Yes, filling the preview window is part of the code for the popup menu. If there is only one alternative you d

Re: visual selection invisible in default color scheme when

2006-04-20 Thread Bram Moolenaar
Georg Dahn wrote: > Vim 7.0e02 / Windows XP: > > 1. gvim -u NONE > 2. colo desert > 3. colo default > > Then the visual selection is invisible and the error message > "Warning: terminal cannot highlight" is shown. This behavior > is reproducible with other color schemes than desert (like > morn

Re: omni-completion: info bug

2006-04-20 Thread Mikolaj Machowski
Dnia czwartek, 20 kwietnia 2006 13:04, Bram Moolenaar napisał: > Aaron Griffin wrote: > > Just a "heads up": > > > > Using an omni-completion dictionary, a single completion entry (for > > which no menu is displayed) does not update the info preview window. > > Yes, filling the preview window is pa

Re: omni-completion: info bug

2006-04-20 Thread Aaron Griffin
On 4/20/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > Aaron Griffin wrote: > > > Just a "heads up": > > > > Using an omni-completion dictionary, a single completion entry (for > > which no menu is displayed) does not update the info preview window. > > Yes, filling the preview window is part of

Code completion suggestions...

2006-04-20 Thread Eric Van
Code Completion suggestion. Ok, first a little context. I currently have a project which provides an interface for vim to invoke commands via system() calls which are executed in a headless eclipse instance. I use this interface to provide code completion for java source files and ant build files

Re: Moderator for Vim Tips

2006-04-20 Thread Gautam Iyer
On Wed, Apr 19, 2006 at 08:21:49PM -0400, Jeremy Conlin wrote: > A few weeks (months?) ago a suggestion was made that the submissions > to Vim tips be moderated. This is due to the address being used by > spammers. Apparently nobody volunteered to do this because there are > still inappropriate

Re: omni-completion: info bug

2006-04-20 Thread Bram Moolenaar
Aaron Griffin wrote: > On 4/20/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > > > Aaron Griffin wrote: > > > > > Just a "heads up": > > > > > > Using an omni-completion dictionary, a single completion entry (for > > > which no menu is displayed) does not update the info preview window. > > > >

Re: Code completion suggestions...

2006-04-20 Thread Bram Moolenaar
Eric Van wrote: > Code Completion suggestion. > > Ok, first a little context. > I currently have a project which provides an interface for vim to > invoke commands via system() calls which are executed in a headless > eclipse instance. > > I use this interface to provide code completion for jav

Re: Code completion suggestions...

2006-04-20 Thread Martin Stubenschrott
On Thu, Apr 20, 2006 at 08:15:01AM -0700, Eric Van wrote: > So, I propose a means to lazily retrieve info for a completion. > Basically it should be like a CursorHold, but in the context of the > completion popup. If the user stops on a completion for some > determined amount of time, vim should t

Re: Code completion suggestions...

2006-04-20 Thread Eric Van
On 4/20/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > Eric Van wrote: > > > Code Completion suggestion. > > > > Ok, first a little context. > > I currently have a project which provides an interface for vim to > > invoke commands via system() calls which are executed in a headless > > eclipse i

Re: Code completion suggestions...

2006-04-20 Thread Martin Stubenschrott
> Maybe I didn't explain this correctly... I would expect the flow to be > > - User hits > - vim executes foo#bar#FindCompletionStart instead of > CompletionFunction(1, '...') > The starting column of the completion is returned. > - vim executes foo#bar#FindCompletions('...') instead of > C

Re: Feature request: for abbreviations

2006-04-20 Thread Hari Krishna Dara
On Thu, 20 Apr 2006 at 1:04pm, Bram Moolenaar wrote: > > Hari Krishna Dara wrote: > > > In Vim7, I see that maps can now have argument to indicate that > > the RHS is an expression that should be evaluated. I think this is cool, > > and though I don't have a need yet, I am pretty sure it will co

Re: vim7: request for new autocommands

2006-04-20 Thread Hari Krishna Dara
On Thu, 20 Apr 2006 at 1:04pm, Bram Moolenaar wrote: > > Hari Krishna Dara wrote: > > > On the lines of InsertEnter and InsertLeave, can we please have > > CommandEnter and CommandLeave that will get triggered when the user > > starts one of the :, /, ?, = etc. modes? The reason I ask is, with th

Re: Feature request: for abbreviations

2006-04-20 Thread Bram Moolenaar
Hari Krishna Dara wrote: > > > In Vim7, I see that maps can now have argument to indicate that > > > the RHS is an expression that should be evaluated. I think this is cool, > > > and though I don't have a need yet, I am pretty sure it will come to > > > good use soon. But meanwhile, I think the

Re: omni-completion: info bug

2006-04-20 Thread Aaron Griffin
On 4/20/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > Nice feature, right? I'll add a remark about that. The idea is that > the preview info remains there for a while, so that you can see function > arguments, for example, while you continue typing. But if you want to > explicitly clear it usi

Re: netrw needs more keepjumps?

2006-04-20 Thread Hari Krishna Dara
On Thu, 20 Apr 2006 at 9:58am, Charles E Campbell Jr wrote: > Hari Krishna Dara wrote: > > >The new version of netrw seems to be a lot better than the old explorer > >in terms of not corrupting jumplist, but I think there is more work > >needed. Ideally, when you open a directory, you should see

Re: omni-completion: info bug

2006-04-20 Thread Mikolaj Machowski
Dnia czwartek, 20 kwietnia 2006 17:12, Aaron Griffin napisał: > > On a related note, an 'info' dict entry of '' does not change and/or > remove the preview information. Using a single space blanks the > window, but an empty string does not. And this is Good Thing :) m.

RFC: (x)html completion support in Vim7

2006-04-20 Thread Mikolaj Machowski
Hello, I am author of (x)html completion scripts and related (php, css, javascript). I'd like to ask what you think it should like. At the beginning I was pushing for one default: XHTML 1.0 Strict. Bram didn't like it and now there are two: fot &ft='html' HTML 4.01 Transitional and for &ft=='xhtm

Re: netrw needs more keepjumps?

2006-04-20 Thread Charles E Campbell Jr
Hari Krishna Dara wrote: On Thu, 20 Apr 2006 at 9:58am, Charles E Campbell Jr wrote: Please try setting g:netrw_fastbrowse=0 in your .vimrc. Hopefully the jumplist will then be retained. Did you mean the value "2"? Whoops -- yes, I meant "2". If you want the jumplist to work, you

Re: omni-completion: info bug

2006-04-20 Thread Aaron Griffin
Ack, sorry - that was supposed to go to the list On 4/20/06, Mikolaj Machowski <[EMAIL PROTECTED]> wrote: > Dnia czwartek, 20 kwietnia 2006 17:12, Aaron Griffin napisał: > > > > On a related note, an 'info' dict entry of '' does not change and/or > > remove the preview information. Using a si

Re: omni-completion: info bug

2006-04-20 Thread Mikolaj Machowski
Dnia czwartek, 20 kwietnia 2006 21:59, Aaron Griffin napisał: > Is there any possiblity to get the preview window to pop up for single > completions? If not, I can always force a single empty entry like > {'word':'', 'abbr':'[Cancel]'} or some such oddity... :help completeopt menuone flag m.

Re: omni-completion: info bug

2006-04-20 Thread Mikolaj Machowski
Dnia piątek, 21 kwietnia 2006 00:20, Aaron Griffin napisał: > Ack, sorry - that was supposed to go to the list > > On 4/20/06, Mikolaj Machowski <[EMAIL PROTECTED]> wrote: > > Dnia czwartek, 20 kwietnia 2006 17:12, Aaron Griffin napisał: > > > On a related note, an 'info' dict entry of '' does

Mappings fail me, yet again

2006-04-20 Thread Nikolai Weibull
I really, really don't like the way mappings work in Vim. They're too much in between being something that executes a command and something that just sends keys. And the separation between user-defined mappings and commands associated with a given ascii character has always felt like a very poor

Re: Mappings fail me, yet again

2006-04-20 Thread Yakov Lerner
On 4/21/06, Nikolai Weibull <[EMAIL PROTECTED]> wrote: > Still, I figured that now that we have operator functions ... > I would be able to define my long-wanted "g:" > mapping that makes : act like an operator, i.e., first waits for a > range and then starts command mode with that range on the com

Re: Mappings fail me, yet again

2006-04-20 Thread sean
On Fri, 21 Apr 2006 01:41:46 +0200 "Nikolai Weibull" <[EMAIL PROTECTED]> wrote: > Still, I figured that now that we have operator functions and > expression mappings (that don't seem to be able to do anything that > =... couldn't do) I would be able to define my long-wanted "g:" > mapping that mak

Re: Mappings fail me, yet again

2006-04-20 Thread sean
On Thu, 20 Apr 2006 21:19:29 -0400 sean <[EMAIL PROTECTED]> wrote: > On Fri, 21 Apr 2006 01:41:46 +0200 > "Nikolai Weibull" <[EMAIL PROTECTED]> wrote: > > > Still, I figured that now that we have operator functions and > > expression mappings (that don't seem to be able to do anything that > > =.

Code completion and entries with duplicate 'word' attributes.

2006-04-20 Thread Eric Van
It appears that code completion is removing any entries that have duplicate 'word' attributes. For completion results not using the dictionary format I fully agree that duplicates can safely be removed, but when using the dictionary format two or more entries sharing the same 'word' attribute shou

Re: RFC: (x)html completion support in Vim7

2006-04-20 Thread Doug Kearns
On Thu, Apr 20, 2006 at 10:51:04PM +0200, Mikolaj Machowski wrote: > Hello, > > I am author of (x)html completion scripts and related (php, css, > javascript). I'd like to ask what you think it should like. > > At the beginning I was pushing for one default: XHTML 1.0 Strict. Bram > didn't like i

Re: Code completion and entries with duplicate 'word' attributes.

2006-04-20 Thread Martin Stubenschrott
On Thu, Apr 20, 2006 at 06:52:44PM -0700, Eric Van wrote: > My code completion function returns a list with the following entries: > kind: 'f', word: 'toCharArray', menu: 'toCharArray() char[] - String' > kind: 'f', word: 'toString', menu: 'toString() String - String' > kind: 'f', w