On 30/07/09 19:01, Rashmi wrote:
>
> Thank you, this works, and is a big time saver.
>
> :imap sout^V^I System.out.println("");<Esc>F"i
>
> I had to press the Tab key literally after sout
>
> but not type the<Esc>  key but type in the characters<Esc>  ,
>
> and it positions the cursor for character insertion after the first "
>
> -Rashmi
>
> On Thu, Jul 30, 2009 at 12:44 PM, Sylvain
> Chouleur<[email protected]>  wrote:
>>
>> Hi,
>> use maps:
>> :map sout<Tab>  oSystem.out.println("");<Esc>F"i
>> or i_maps:
>> :imap sout<Tab>  System.out.println("");<Esc>F"i
>>
>> Sylvain

Please bottom-post in the Vim lists.

You ought to be able to also represent the Tab key by <Tab>. Or maybe 
even more economical:

:imap <F2> System.out.println("");<Left><Left><Left>

then just hit F2 in Insert mode to trigger it.


Best regards,
Tony.
-- 
A man needs a mistress, just to break the monogamy.

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

Reply via email to