Wednesday, January 25, 2017

Re: How to make the curly brace on the same line when press enter between them ?

On Thursday, January 26, 2017 at 7:36:31 AM UTC+8, DrChip wrote:
> Tony Mechelynck wrote:
> > P.S. See also «:help 'cinoptions'» if it is a C-like language.
> >
> > Best regards,
> > Tony.
> >
> > On Wed, Jan 25, 2017 at 9:23 PM, Tony Mechelynck
> > <antoine.mechelynck@gmail.com> wrote:
> >> On Wed, Jan 25, 2017 at 7:11 PM, Zhe Lee <imlegendlzz@gmail.com> wrote:
> >>> here is the thing:
> >>> {|}, | is my curve when I press enter now the curly braces will not on the same line.
> >>> How to fix it?
> >>>
> >> If you mean they are not in the same (vertical) _column_ then I'm not
> >> sure; it may or may not be possible, check in particular the options
> >> containing "indent" (:help '*indent*' but hit Ctrl-D instead of Enter,
> >> then hit Tab until you come to an entry that looks promising).
> >>
> >> OTOH, if what worries you is really that they aren't on the same
> >> (horizontal) _line_ then the answer is simple: Dont hit Enter between
> >> them, but possibly the space bar, the Tab key, or even nothing. Or
> >> type them both one after the other, then hit Left-Arrow to bring the
> >> cursor back between them.
> >>
> This may be a question about a plugin which facilitates entry of things
> like{...}. A snippet, perhaps? If so, find the plugin author in the
> documentation and ask him/her.
>
> Chip Campbell

It happens in the new buffer with no filetype, and I check the _.snippet file but there is no related snippet.

I try to debug the process by call the Testf() but it works normally this time.
I don't know why.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: