Hacker News new | ask | show | jobs
by nimbius 3025 days ago
much of whats covered in org mode can be handled by vim's folding option. if you write ansible playbooks with coworkers who handle automation as a stream of consciousness out of a single file, folding can save you some sanity.

http://vim.wikia.com/wiki/Folding

4 comments

Do vim's folds give you a full literate programming environment with support for executing code, saving results in vars, WEB syntax, etc? From what I'm familiar with, vim's folding is a lot closer to outline-mode[1], which org relies on for folding. The folding is a very small part of org-mode's functionality.

[1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Ou...

I think you can run python inline in vim. But I obviously vim doesn't really have something as full-featured as Org mode. I mean, there's vimwiki - and you could probably get a majority of the rest of the features through messing around with plugins. But at that point, you may as well just switch to spacemacs.
The ability to fold is defintively important to org-mode, but that's not really the point. Folding is a core-feature of Emacs (hs-minor-mode: https://www.gnu.org/software/emacs/manual/html_node/emacs/Hi...) and not inherent to org-mode.

org-mode is a major-mode and covers a little more than that^^

folding is a convenience feature of org-mode, and really not what it's all about.

I'm sure most of the individual features are available in vim and other editors, but it's tying everything together in a neat package that's the main draw of org-mode.

Since we're off-topic anyway: have you tried Spacemacs? It's all the ingrained vim keybindings on top of a... more powerful system.
Personally, if I was going to give Vim a try again I'd use Oni:

https://github.com/onivim/oni