vim-erlang / vim-erlang-runtime

Erlang indentation and syntax for Vim
https://vim-erlang.github.io
101 stars 29 forks source link

respect comma first style #15

Open andrzejsliwa opened 11 years ago

andrzejsliwa commented 11 years ago

actual:

-export([ greet/2
          , head/1
          , second/1]).

expected:

-export([ greet/2
        , head/1
        , second/1]).

same for tuples and arguments list

emacs change: https://github.com/erlang/otp/commit/8bfff9e0f80868ad7edc08dfda6c51a2b00966e6

more examples in intellij erlang issue : https://github.com/ignatov/intellij-erlang/pull/294

hcs42 commented 11 years ago

Thank you for your finding – I will keep the ticket open until I have some time to look into the best way to solve this.

efine commented 8 years ago

It would be very useful to have this behavior, along with better multiline indentation for keywords such as fun, =, orelse, andalso, etc. as mentioned in the issue opened by Tuncer. In particular, the ability to choose whether to have a double or single indent on the line after fun would be much appreciated.