vim - indenting
#tags vim
So rather than start writing my own indent function, I decided to read more
about cindent. The option, cinoptions, lets you tell
vim how to react to things. What I was looking for was:
When I am typing a function call, and break the line because it's too long, I'd
like the new line to start aligned with the open parenthesis, like this:
System.out.println("Hello there, how are you? kthx." +
"Java is fun");
^
:set cinoptions=(0
cindent is enabled, will cause vim to auto indent to
match your parentheses usage.