Thanks a lot for your help. What I want to get is that, turn off space or enter 
for expanding abbreviations and make other keys such as Ctrl+B do the same
thing. Because I maybe define a lot abbreviations and I cannot map so much
keys to an abbreviation. But thank you all the same.

------------------                               
Cheng Liang
2008-12-30

-------------------------------------------------------------
发件人:pansz
发送日期:2008-12-30 14:44:08
收件人:vim_use
抄送:
主题:Re: new to VIM


程梁 写道:
> Hi, there! I'm a programmer and new to VIM. I found
> VIM is very powerful. When using VIM to develop Java
> programs, I want to use abbreviations to make it easier.
> I defined these in _vimrc but I found it was not easy to
> finish this work especially cursor position. It is easy to do 
> this in SciTE with | as the position of cursor. Is there an 
> easy way to do this? 
> 
> And the abbeviations identified after a space or enter, can
> I change this to anthor kays such as Ctrl+B?

What you need is a mapping, not abbr, see :help map for that.

for example:

:imap <C-B> for (i=0; i<; i++) {<esc>7hi

Would map something you like to Ctrl+B, Try and see.





--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to