Sunday, November 4, 2012

Re: Snippet for adding closing parentheses in ultisnips

2012-11-04 Chris Lott:

> On Sun, Nov 4, 2012 at 9:10 AM, Marco <netuse@lavabit.com> wrote:
> >
> > How can I fix the snippet to work with and without space after
> > the function name? Or is there a better way to achieve that?
>
> Unless I am misunderstanding, you could use delimitmate
> [http://clinki.es/go/Pf] which does the completions and puts the
> cursor inside

I just installed it and it seems to work. Thanks for the tip.

> ...plus when you get to the end you just type the closing
> character and it jumps over that closing character. Much easier
> than CTRL-J for me.

The only thing that bothers me is that the default key combination
to jump over delimiters is <S-Tab>. I'd like to map it <Ctrl-j>.
Then it works in a consistent fashion with the other jumps. How can
I achieve that?

As you mention, typing the closing character is also possible. This
is not feasible in my opinion. You have to type the open character,
the text in between and then the closing one. What do you need the
plugin for? And the closing characters are sometimes, e.g. ) much
harder to reach than <Ctrl-j> which completely lies on the homerow.


Marco


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment