Re: separator in user-defined command name

2006-12-05 Thread Luc Hermitte

* On Mon, Dec 04, 2006 at 12:09:34PM -0800, Gary Johnson [EMAIL PROTECTED] 
wrote:
 On 2006-12-04, [EMAIL PROTECTED] wrote:
   I tried '-' and '_' in user-defined command name, both are not accepted
   (like X_Y, X-Y). Is there maybe some  [other] separator that is
   allowed in user-defined command name ?
  
  I'm afraid only uppercase letters can be used
 
 Actually, uppercase letters, lowercase letters and digits can be 
 used, but the name must start with an uppercase letter.

Of course. I meant can be used as word separator
- :MyCommand and not :MYCOMMAND


-- 
Luc Hermitte
http://hermitte.free.fr/vim/


separator in user-defined command name

2006-12-04 Thread Yakov Lerner

I tried '-' and '_' in user-defined command name, both are not accepted
(like X_Y, X-Y). Is there maybe some  [other] separator that is
allowed in user-defined command name ?

Thanks
Yakov


Re: separator in user-defined command name

2006-12-04 Thread hermitte
Hello,

Yakov Lerner [EMAIL PROTECTED] wrote:

 I tried '-' and '_' in user-defined command name, both are not accepted
 (like X_Y, X-Y). Is there maybe some  [other] separator that is
 allowed in user-defined command name ?

I'm afraid only uppercase letters can be used

In case you need to define several commands like X-Y, X-Z, X-U, ... then you can
also consider X having a sub command as its first parameter.
This is what I choose in a BuildToolWrapper.vim
- :BTW echo toolchains()
   :BTW setlocal make
   :BTW addlocal cygwin
   :BTW addlocal STLFilt
   :BTW help
   ...


HTH,

--
Luc Hermitte
http://hermitte.free.fr/vim/


Re: separator in user-defined command name

2006-12-04 Thread Gary Johnson
On 2006-12-04, [EMAIL PROTECTED] wrote:
 Hello,
 
 Yakov Lerner [EMAIL PROTECTED] wrote:
 
  I tried '-' and '_' in user-defined command name, both are not accepted
  (like X_Y, X-Y). Is there maybe some  [other] separator that is
  allowed in user-defined command name ?
 
 I'm afraid only uppercase letters can be used

Actually, uppercase letters, lowercase letters and digits can be 
used, but the name must start with an uppercase letter.

:help user-cmd-ambiguous

Regards,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
 | Spokane, Washington, USA