vim-closetag icon indicating copy to clipboard operation
vim-closetag copied to clipboard

Use newline CR to put on the next line

Open himat opened this issue 4 years ago • 6 comments

The docs say

And now if you press > again, the content will be:
<table>
    |
</table>

How can I get this same behavior by pressing the <enter> key (i.e. <c-r>) after I type the close > in <table>?

himat avatar Mar 01 '20 17:03 himat

@himat please check out this comment: https://github.com/alvan/vim-closetag/issues/38#issuecomment-391838147

caioariede avatar May 03 '20 13:05 caioariede

@caioariede I didn't realize the formatting in my question was not showing correctly before. I know that pressing > twice works. But I was wondering if I can make pressing enter do the same thing?

himat avatar May 04 '20 15:05 himat

I think pressing Enter once and getting that behavior is what a lot of us expected before we tried.

There's pretty much never going to be a time where I finish typing a tag, hit Enter, and actually want this:

<table>
|</table>

instead of

<table>
  |
</table>

Double-pressing > is not intuitive. If it's possible to get this behavior with a single <CR> instead, even as an option rather than default behavior, I think many of us would really appreciate it.

brendonrapp avatar Nov 06 '20 01:11 brendonrapp

I think pressing Enter once and getting that behavior is what a lot of us expected before we tried.

There's pretty much never going to be a time where I finish typing a tag, hit Enter, and actually want this:

<table>
|</table>

instead of

<table>
  |
</table>

Double-pressing > is not intuitive. If it's possible to get this behavior with a single instead, even as an option rather than default behavior, I think many of us would really appreciate it.

i'm uninstalling this plugin and moving on to another one just because this is not available, sorry not sorry but it's been like a year since this issue is still open... so i think it's time to move on :)

JS-junky avatar Aug 29 '21 12:08 JS-junky