vim-closetag
vim-closetag copied to clipboard
Use newline CR to put on the next line
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 please check out this comment: https://github.com/alvan/vim-closetag/issues/38#issuecomment-391838147
@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?
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.
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 :)