how can I add this feature to vim!!

2007-05-31 Thread jaywee
mostly when I press "{", I have to press one more "}" after, because they are always appears at the same time! the same as "()" "[]", and also the quote mark(""). so I wonder how can I add the feature that when I insert "{" or the other punctuations above, it will automatically add "}" !!! bes

Re: how can I add this feature to vim!!

2007-06-01 Thread Marc Weber
Hi jaywee, The simplest way is using a mapping inoremap { {}O which should do what you want. But I myself find this terrible annying because it always inserts those closing braces. That's why I've written some kind of context sensitive completion http://www.mawercer.de/marcweber/vim/installer/vi

Re: how can I add this feature to vim!!

2007-06-01 Thread Yeti
On Fri, Jun 01, 2007 at 01:05:53PM +0800, jaywee wrote: > mostly when I press "{", I have to press one more "}" after, because > they are always appears at the same time! the same as "()" "[]", and > also the quote mark(""). so I wonder how can I add the feature that when > I insert "{" or the o

Re: how can I add this feature to vim!!

2007-06-01 Thread Michael F. Lamb
jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodmap ~/.speedswapper* in a terminal, I follow the guide and finally done! bu

Re: how can I add this feature to vim!!

2007-06-04 Thread Robert Cussons
Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodmap ~/.speedswapper* in a terminal, I follow the gu

Re: how can I add this feature to vim!!

2007-06-04 Thread vim
Robert Cussons wrote: Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodmap ~/.speedswapper* in a te

Re: how can I add this feature to vim!!

2007-06-04 Thread Robert Cussons
[EMAIL PROTECTED] wrote: Robert Cussons wrote: Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodma