I'd try just

cabbr todo GMSend [EMAIL PROTECTED]

The c in front makes it only expand in command line mode, otherwise wherever 
you typed todo (such as in email text you were composing) it'd expand.

*tim* 

-----Original Message-----
From: shawn bright [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 15, 2007 12:38 PM
To: vimlist
Subject: how to create a command

hello there vim dudes.

i am using the gmail.vim plugin. Its cool, and allows me to send myself 
messages. This is how i keep my TODO list, with filters and gmail plus 
addressing. So anyway. It uses a command like this :GMSend someemailaddress.

now, since i am using the same email address everytime i do this, i would like 
a new command that will be shorter. like :todo or something.

is there something i can put in my .vimrc that will let me do this ?
Or would some mapping be more appropriate ?

thanks

sk

Reply via email to