Closed pmalek closed 11 years ago
It runs \<ESC>=ko
when press <CR>
after {
. It is at 369 line of auto-pairs.vim, you could modify it by yourself.
Or you could try better javascript indent plugin https://github.com/jiangmiao/simple-javascript-indenter
Can you elaborate a bit on how to do this?
@malekp Well, I guess that wrong indentation is caused by your syntax or tabstop settings. Since it runs ko, which means move one line up[k], followed by edit in a new line[o], it's very clear that vim's indent mechanism is responsible for the wrong indentation.
Ok I have solved this and now my 369 line looks like this :
return "\<ESC><<ko".cmd
For anyone still having this issue: I resolved this issue by following: http://stackoverflow.com/a/620310/747749
@mbrevda <3
I have noticed that with your plugin using
Insert new indented line after Return
in e.g.({ | })
I would get wrong indentation level.How this can be corrected or adjusted to produce something like this :
??