Monday, March 28, 2011

Re: How to map { properly in coding

Reply to message «How to map { properly in coding»,
sent 19:30:31 28 March 2011, Monday
by wei gao:

You can try the following:
inoremap {<CR> {<C-o>o}<C-o>O
(I suggest not to remove <CR> as you almost definitely will need to type a
single `{' some time).

Original message:
> Hi,
>
> Is there any convinent way to map { to the following code snips:
>
> {
> //put cursor here
> }
>
> Thanks!
> Wei

No comments:

Post a Comment