Re: [Vim-latex-devel] Completion of Tcommands
Brought to you by:
srinathava,
tmaas
From: Luc H. <her...@fr...> - 2003-07-15 00:30:51
|
* On Mon, Jul 14, 2003 at 02:57:01PM -0700, Srinath Avadhanula <sr...@fa...> wrote: > BTW, I just found out that the -complete=custom,Foo works only for vim > 6.2+. Do we still want to implement this? We will be generating errors > for the majority of users now... Nice to know! > On vim 6.1, I get an error if I do > > :com -nargs=1 -complete=custom,Foo Bar > > E180: Invalid complete value: custom,Foo Bar IMHO, It is not really an issue. Something like this will do the trick. if version < 602 :com -nargs=1 Bar else :com -nargs=1 -complete=custom,Foo Bar endif And i'm sure it is easy to write a wrapper function/command to ease the definition of such commands. As a consequence, the auto-completion would be a feature of vim 6.2+ only... -- Luc Hermitte http://hermitte.free.fr/vim/ |