Hacker News new | ask | show | jobs
by johnboyer 2954 days ago
>Vim IMproved

Oh, so you are using an improved version of Vi IMproved? ;)

3 comments

Aha yeah, it's a recursive improvement on itself, like the GNU acronym!
That's neovim, right?
or Spacemacs
Emacs + evil-mode, presumably. :)
I need to use Emacs rather than vim for some things (Proof General, mostly), and I was surprised how well evil-mode works. It's only undo that I don't get. From vim I'm used to be able to undo as many editing steps as I want. In evil-mode, I find that if I type "u" too many times, it runs out of undos to do and starts undoing the undos (i.e., it starts redoing things I want to go away).

Also, search uses different word separators from vim: In vim "foo_bar" is a single word that will be skipped by pressing "w". But in evil-mode the "_" is a word separator, so the above is three words. That breaks my flow every time.

Some of this might not be due to vanilla evil but due to the fact that I'm using it through Spacemacs.

This is my two cents. If by any chance anyone would know off the top of their head how to fix these, I'd be greatful.

For linear undo and undo branches, undo-tree.el is required:

https://www.emacswiki.org/emacs/UndoTree

Regarding "_", you can set up Emacs to treat _ as word constituent by modifying the syntax table. For example:

    (modify-syntax-entry ?_ "w")
For more information, please see:

https://www.gnu.org/software/emacs/manual/html_node/elisp/Sy...

Awesome, thanks! I'll try these.
Not necessarily. It could be NeoVIM. (-: