Live data from Hacker News

One with Vim

invisibletheory.com

21–30 of 129 posts

Re: One with Vim

#21
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.

With macvim I sometimes end up using cmd-c on a visually selected area, the cmd-v in the other window. It works, even if it isn't built-in. I also avoid having multiple windows open as much as possible (tabs and splits ftw) but when it does happen, I'm very grateful the standard copy/paste commands still work.

Re: One with Vim

#22
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.

I use a simple hack in my .vimrc

  com -range YY :,w! ~/tmp/cnp.txt
  com PP :r ~/tmp/cnp.txt
Then :YY, :PP as appropriate

Re: One with Vim

#23

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 use "ectags --file-tags ..." and the ordinary tag mechanism in vim (:ts filename.c).

Re: One with Vim

#25
post #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 ? :)

really? Damn, it should. It's Meta Pro served by Typekit. Are you on a Mac?

Re: One with Vim

#26
post #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 ? :)

really? Damn, it should. It's Meta Pro served by Typekit. Are you on a Mac?

I've read your post on Windows, on Mac it looks OK.

Re: One with Vim

#27
I'm aware I may be too pedantic, but it bothers me when people seem to completely conflate vim with vi. For example, -vi- was released in 1976, and vim not until 1991, despite what the article claims. In the meantime, I'll keep happily using nvi, and keeping the kids off my lawn.

edit: links...

http://en.wikipedia.org/wiki/Nvi

http://en.wikipedia.org/wiki/Vi

http://en.wikipedia.org/wiki/Vim_%28text_editor%29

Re: One with Vim

#28
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.

I agree with the general point. For your example: on windows I use "yy and "p. You can set "* as default in vimrc and just use yy and p though (don't remember it off the top of my head, I can check it if you want, I use windows though)

Re: One with Vim

#29
post #22
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.

I use a simple hack in my .vimrc com -range YY : , w! ~/tmp/cnp.txt com PP :r ~/tmp/cnp.txt Then :YY, :PP as appropriate

Oh, and this: http://vim.wikia.com/wiki/Copy_and_paste_between_Vim_instanc... has various other solutions. Including something I did not know about: You can save and load vim's state in .viminfo, so conceivably, you could yank what you want to yank, :wv in that vim, then :rv! in the other vim and paste from the exact same register or registers. Cute.. and useful for syncing up two vim windows in general.

Re: One with Vim

#30
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.

[deleted]
Post reply on HN