程梁 wrote:
> 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?

I don't know of one. I guess you have read the help a few paragraphs
above

:help :ab

where it says "It is possible to move the cursor after an abbreviation:"

I think a lot of people have these kinds of issues though, and a number
of 'snippets' plugins have been developed to help with it. I believe one
of the most popular ones is called SnippetsEmu. Google for that and give
it a try, perhaps. Or one of the others!

> And the abbeviations identified after a space or enter, can
> I change this to anthor kays such as Ctrl+B?

You may want

:help i_CTRL-]

I don't know of any way to turn off abbreviation expansion when you use
space or enter, though.

Ben.




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

Reply via email to