Live data from Hacker News

One with Vim

invisibletheory.com

11–20 of 129 posts

Re: One with Vim

#11
Vim is my primary editor but I think the only really good part of vim is the keyboard navigation. The rest could be much better.

For example, to this day I haven't figured out an easy, built-in way to copy from one vim window to another. I'd love to have some features of other editors have but the key bindings always hold me back.

Re: One with Vim

#12
selfish question here: Does anybody know how to setup vim so that :! recognises aliases?

something like...

  set shellcmdflag=-O\ expand_aliases\ -c

Re: One with Vim

#13
post #11

Vim is my primary editor but I think the only really good part of vim is the keyboard navigation. The rest could be much better. For example, to this day I haven't figured out an easy, built-in way to copy from one vim window to another. I'd love to have some features of other editors have but the key bindings always hold me back.

Have you tried using :split and :vsplit instead of opening new windows?

Re: One with Vim

#14
post #13
post #11

Vim is my primary editor but I think the only really good part of vim is the keyboard navigation. The rest could be much better. For example, to this day I haven't figured out an easy, built-in way to copy from one vim window to another. I'd love to have some features of other editors have but the key bindings always hold me back.

Have you tried using :split and :vsplit instead of opening new windows?

yes but it doesn't do much for having two monitors

Re: One with Vim

#15
post #11

Vim is my primary editor but I think the only really good part of vim is the keyboard navigation. The rest could be much better. For example, to this day I haven't figured out an easy, built-in way to copy from one vim window to another. I'd love to have some features of other editors have but the key bindings always hold me back.

You're not really supposed to run vim in multiple windows. Use your system pasteboard if you need to copy between them. There's probably some plugin that would make it work with yank registers though.

Re: One with Vim

#16
post #9

Vim is easier on the hands, but Emacs (with ido-mode) still feels better for working with multiple files: (length (remove-if (lambda (b) (not (buffer-file-name b))) (buffer-list))) 42

There are multiple similar plugins for vim.

FuzzyFinder is great. It's no ido-mode though

Re: One with Vim

#17
post #8

The Command-T plugin [1] was a big help in switching from TextMate to vim. I have no idea how anyone can be productive in vim without it (assuming you're working on a multi-file project). 1. https://wincent.com/products/command-t

I've been using FuzzyFileFinderTextmate for a long time. I'm not sure it's still in active development, but it's worked just fine for me; is there a reason for me to switch to Command-T? I also stick to buffers rather than tabs (for terminal/gui consistency) and use buftabs, which I quite like.

You should instead consider switching to the mainline FuzzyFinder instead of the FFTextmate fork. FuzzyFinder is undergoing lots of activity.

You can also try using tabs to represent views of several buffers at once -- for example, I use one tab per app when working on Django code. I have the views, models, templates etc. in split buffers inside one tab.

Re: One with Vim

#18
post #14
post #13

Earlier quoted context omitted.

Have you tried using :split and :vsplit instead of opening new windows?

yes but it doesn't do much for having two monitors

Ah ok. IIRC, gvim has key binds for copying from window to window.

Re: One with Vim

#19

selfish question here: Does anybody know how to setup vim so that :! recognises aliases? something like... set shellcmdflag=-O\ expand_aliases\ -c

Your aliases are generally sourced from your shell rc file (ie ~/.bashrc). Not sure how vim launches the shell to run ex shell commands but in the interest of portability it's probably just sh with no rc files loaded. This is probably configurable. Try :help shell or :help :! (I'm not at a terminal so not sure what you'll find)

Re: One with Vim

#20
I've used Vim successfully on Windows/Mac/Linux and you can customized it as you wish.

Interesting post so 1+.

As a side note the font used for the article does not render well on my Chrome browser. What are you using ? :)

Post reply on HN