Timeline for Ruby indentation: align multiline method chains on the leading dot?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 24, 2017 at 12:59 | comment | added | ivan | Thanks. It looks like implementing this via the actual indentation or syntax file is non-trivial. I borrowed some ideas from your answer to write something I can call on demand. Wiring my version into insert mode is proving difficult/buggy so far but I'll keep fiddling with it. I don't use this indentation-style most of the time, so a manually-triggered solution is not so bad. I wanted a solution that wouldn't move the cursor or interrupt the undo-block. I'll post what I came up with above. | |
Jul 24, 2017 at 12:54 | vote | accept | ivan | ||
Jul 21, 2017 at 1:56 | history | answered | Peter Rincker | CC BY-SA 3.0 |