Live data from Hacker News

Why, oh why, do those nutheads use vi?

viemu.com

61–70 of 228 posts

Re: Why, oh why, do those nutheads use vi?

#61

> Do whatever you want. Don't learn it if you feel it's too much effort just for nothing. Learn emacs instead. Or stay in your IDE using a lousy editor. Whatever. Why do all articles about how wonderful vi is end with condescension? Anyway: vi -> fast editing. IDE -> fast maintenance. I know which one I'd choose. The text editing features of an IDE is not why people choose to use IDEs (note: of course this helps best…

I mostly use Eclipse with the Emacs+ plugin for code development these days. Emacs+ provides an almost flawless Emacs experience, except for that fact that Eclipse is kind of a pain in the butt and often sluggish at manipulating text. It's sluggishness does interfere with my thought processes. Eclipse is very helpful for some things, but it would have been oh so much nicer if the features of Eclipse had been incorporated into something with the fluidity of Emacs. It's too bad that Lucid went out of business.

Re: Why, oh why, do those nutheads use vi?

#62
post #49

Earlier quoted context omitted.

Arch definitely doesn't. sometimes I accidentally type vi and am confused for a few seconds why things dont work right. Luckily an alias will fix it.

Is it a case where vi is a version with the tiny feature set and vim has a larger (huge) feature set?

Sounds reasonable. I was about to guess a similar thing. A minimal Debian install (perhaps Ubuntu and other child-distros as well?) installs a vim-tiny[1], which often throws people off[2].

[1] http://packages.debian.org/squeeze/vim-tiny

[2] http://www.google.com/search?client=safari&rls=en&q=...

Re: Why, oh why, do those nutheads use vi?

#63

Whenever I am using a program other than vim I feel clumsy. Plugins for Eclipse, Chrome and so on will only bring you so far. The other way around, namely turning vim into a multipurpose IDE does not satisfy my needs. One needs to admit that some features (refactoring support in Eclipse for example) cannot be matched by the available vim plugins. I know there are other solutions, like eclim, but I am looking for some…

I'm not sure if this still works, but I'll be trying it a bit later today. (and I am guessing you're not after GTK only VIM editing)

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

Re: Why, oh why, do those nutheads use vi?

#67
post #21

I use vim for about a year or more, and I like it, however I'm still having trouble with copying and pasting tiny fragments of text. Maybe someone can help me out with this? 1) If I yank a line with yy, pressing P or p will insert the text into a new line. 2) If I go to visual mode and select a region, yank it with y, then press p/P, it gets it inserted into the current line. That is, vim preserves new lines. What I…

For the first case: use 'J', join-lines command. It deletes the newline at the end of the line your cursor is on.

Yes, joining works when I want it to appear at the end of the current line, but I want to it to appear at the cursor. Anyway, seems like pasting in the insert mode works the way I want, for the first case.

Re: Why, oh why, do those nutheads use vi?

#68
post #21

I use vim for about a year or more, and I like it, however I'm still having trouble with copying and pasting tiny fragments of text. Maybe someone can help me out with this? 1) If I yank a line with yy, pressing P or p will insert the text into a new line. 2) If I go to visual mode and select a region, yank it with y, then press p/P, it gets it inserted into the current line. That is, vim preserves new lines. What I…

Does it really make sense, using an editor more than a year and still have trouble with rather basic functions?

Use an editor you can use right away and whose controlls don't contradicts with the rest of the software you use.

I don't believe in vim neither I don't belive in plain Emacs.

Just my 2 cents

Re: Why, oh why, do those nutheads use vi?

#69
I've never really felt comfortable in vi. I first started using it in 1989 at home, used it throughout college, and then used it on-and-off during my career, but it's never really felt powerful compared to a GUI editor.

I want a scrollbar. I want a list of files in my project that I can just click on to open. I want tabs I can click. I want multiple windows that I can alt-tab to. And since I spend most of my time thinking and modifying code, I'm more often than not thinking in terms of tweaks and copy/pasting between files rather than "replace in this block of 3 words". A mouse and GUI just feels a lot more natural to me, even after 20 years of vi.

Re: Why, oh why, do those nutheads use vi?

#70
post #21

I use vim for about a year or more, and I like it, however I'm still having trouble with copying and pasting tiny fragments of text. Maybe someone can help me out with this? 1) If I yank a line with yy, pressing P or p will insert the text into a new line. 2) If I go to visual mode and select a region, yank it with y, then press p/P, it gets it inserted into the current line. That is, vim preserves new lines. What I…

Whether it pastes a newline or not depends on whether you yanked one. I guess this is what you mean by "vim preserves new lines". Don't all editors work this way? If you want to yank a line character-wise, you would do something like ^y$. I have Y mapped to y$ for this sort of thing. You cannot yank a substring of a line line-wise. That doesn't really make sense. I typically open a new line with o and then paste in i…

[deleted]
Post reply on HN