I am using the gg=G
, =ap
etc. paradigms to reformat some code. This code is in tcl:
proc something { foo bar } {
set foo [yadda yadda]
set foo [yadda yadda]
set foo [yadda yadda]
}
When I try adjust indents, the formatting changes to:
proc something { foo bar } {
set foo [yadda yadda]
set foo [yadda yadda]
set foo [yadda yadda]
}
I would expect all the set statements at the same indent level. Is there a way to do that?
This is the "VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 4 2017 18:14:54)" what comes with MacS Sierra, invoked as "vi".
Thanks
:filetype
and:verbose set sts? ts? sw? cindent? indentexpr? autoindent? smartindent?
?