Re:Why I Still Use Vim
by PhasmaFelis on Thursday January 04, 2018 @03:38AM
(#16068822)
Atom claims to have code folding, but (despite having syntax highlighting) the code folding function works naively off of indents, not syntax, so you're out of luck working on any codebase with less-than-meticulous indentation, zero-indent comments, etc.
Unfortunately, IIRC, Sublime does exactly the same thing. It's really frustrating. I haven't been able to find a good all-purpose Mac programmer's editor with working code folding.
Re:Why I Still Use Vim
by cbcoutinho on Thursday January 04, 2018 @03:56AM
(#16068889)
Atom is currently in the process of working on implementing a new source folding parser [0] based on something called 'tree-sitter' [1]. If you are interested in following that development, feel free to watch that PR.
Re:Why I Still Use Vim
by PhasmaFelis on Thursday January 04, 2018 @04:58PM
(#16074450)
Done, thanks.
Unless you use Python and Saas. In which case indentation is always perfect.
Except for comments.
It is nice if you incorporate an opinionated code formatter into your git pre-commit scripts and also into the editor itself.
It works just fine, at least after 1.18. I switched from Sublime to Atom, mostly because it's open source and I'm using it daily at work w/o any issues.
My collegue tried VS Code, but it screwed a commit due to not updating the file after a checkout, so he went back to Sublime.
Re:Why I Still Use Vim
by tokenizerrr on Thursday January 04, 2018 @07:43AM
(#16069902)
I used to love atom, but I started using it for Go recently and it crashes all the time. Every hour or so it crashes at least once, oftentimes more than once.
It's one saving grace is that I thought Sublime was a bit bulky/memory hungry, but Atom gave me a new found appreciation for Sublime which I'm now back in love with!