Ask HN: Replacement for VIM
Hi HN,
I've been using vim since university to do software development. I love that it's on virtually every platform and is fast.
I'm looking to upgrade. Is there a replacement that allows me to split screens (vertical/horizontal) and virtually never use the mouse?
I've tried Sublime in classic mode, not enough split screens for my workflow.
Intellij only support vertical split and the vim plugin is lacking.
Thanks!
29 comments
[ 2.9 ms ] story [ 85.6 ms ] threadThere's some good thoughtbot posts on the subject: http://robots.thoughtbot.com/a-tmux-crash-course http://robots.thoughtbot.com/seamlessly-navigate-vim-and-tmu... http://robots.thoughtbot.com/love-hate-tmux
"I like Vim; it is fast, runs on many platforms and I've been using it for development since university. I know that it can split windows horizontally and vertically. But for some inexplicable reason, I want to replace it: is there something else that can split windows horizontally and vertically?"
It kind of "does not compute", you see?
A bit different than vim (horizontal split): control + w + s
I regularly have Vim open split to 2-6 windows, depending on the screen. I prefer in-vim splitting to out-of-vim splitting (tmux et al) because all buffers are shared for quick jumping between them, completion, copy-pasting, etc.
That said, what's the reason you want to move away from vim? Once you have the right plugins, there's no editor that can beat it. I personally use vim + tmux for pretty much everything except for clojure, for which I use emacs + evil-mode (paredit is very very nice, and the vim equivalent didn't work well for me).
The current region of the screen you're working in can be split horizontally with Ctrl-W s, and vertically with Ctrl-W v.
Moving among the splits is done using Ctrl-W + movement keys, where movement keys are arrows, or h, j, k, l. Plus undoubtedly in other ways.
There are ways to rotate and rearrange windows themselves, and perform actions that open windows: many familiar actions can be prefixed with Ctrl-W so that they open a new window, such as chasing a tag (Ctrl-]).
https://github.com/carlhuda/janus
Bonus: plop this in your .vimrc.after for super easy movement around split windows
You can achieve the same thing with tmux of course, this just feels very natural and is available out of the box with no configuration required.
Are you looking for a "better" looking interface ? Try Sublime Text, Atom or Brackets.
Are you looking for better $LANGUAGE support? Try any $LANGUAGE-specific IDE.
Are you looking for better scriptability? Try Emacs, possibly with evil-mode.
Are you looking for a better editing experience? There's nowhere to look.