程梁 写道:
> 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
-~----------~----~----~----~------~----~------~--~---