I wanted to type the following OCaml code:
let f x =
if x = 0 then ()
else ...
However, as soon as I press the last “e” in “else”, Sublime moves the “else” backwards, making the code appear as follows:
let f x =
if x = 0 then ()
else
Sometimes the same happens with the “done” keyword as well.
How can I change this behavior so that the keywords stay where I typed them?
(I use Sublime Text 3 with tab width=4, indent using spaces, and all settings regarding indents (e.g. auto_indent and smart_indent) are using default values)