nasa / fpp

F Prime Prime: A modeling language for F Prime
https://fprime.jpl.nasa.gov
Apache License 2.0
49 stars 31 forks source link

Fix indent in vim for fpp files #112

Closed kevin-f-ortega closed 2 years ago

kevin-f-ortega commented 2 years ago

these lines are needed to avoid vim from indenting 8 spaces. Instead, vim will indent by 2 spaces. Also, tabs will be treated as 2 spaces

bocchino commented 2 years ago

Closing this one for now. I think vim has bugs. Indentation is supposed to be handled according to cinoptions:

http://vimdoc.sourceforge.net/htmldoc/indent.html

In particular, the default indentation is supposed to follow the existing shift width. Instead it seems to go to 6 characters. Setting the shift width to 2 (a) should not be necessary and (b) does not have the desired effect on my system.