TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why, oh WHY, do those #? nutheads use vi?

38 pointsby jxubover 6 years ago

11 comments

AznHisokaover 6 years ago
Because its the only reliable way to edit a file when there’s a “house on fire” production incident.<p>Want to use xemacs? sorry you need a weird dependency. Ok lets use emacs. Still not installed. Ok lets use nano... wait how do i save this again?
评论 #18584637 未加载
评论 #18586377 未加载
Koshkinover 6 years ago
I have always had a problem with all these emacs or vim plugins for various editors and IDEs. The problem is that as soon as you leave the context they work in - switch to a different window or a dialog box (or, in the case of Visual Studio, anywhere outside the code editor window), you are back to having to use the native key bindings.
评论 #18586596 未加载
评论 #18584393 未加载
classichasclassover 6 years ago
Favourite vi joke ever: &quot;I&#x27;ve been using it for about two years now, mostly because I can&#x27;t figure out how to exit it.&quot;<p>On the other hand, it&#x27;s everywhere, it&#x27;s quick and once you learn it there&#x27;s a lot of muscle memory that takes over.
评论 #18585507 未加载
gdriftover 6 years ago
What really makes coding environment productive for me are: file navigation, code browsing, call hierarchy, class hierarchy, find usages, find declaration, find implementations, refactoring, build integration, debugger integration, documentation integration.<p>I did try vim more than once over the years. I&#x27;d use it to edit config files on servers but would much prefer an IDE for coding.
评论 #18585127 未加载
lbradstreetover 6 years ago
I&#x27;d like to stress the point in the article about how important the . is to efficient vim use. <a href="https:&#x2F;&#x2F;pragprog.com&#x2F;book&#x2F;dnvim2&#x2F;practical-vim-second-edition" rel="nofollow">https:&#x2F;&#x2F;pragprog.com&#x2F;book&#x2F;dnvim2&#x2F;practical-vim-second-editio...</a> completely changed how I use vi in this respect.
Techonomiconover 6 years ago
vim is a grammar, a true grammar, once you learn that, it all makes sense.<p><a href="http:&#x2F;&#x2F;rc3.org&#x2F;2012&#x2F;05&#x2F;12&#x2F;the-grammar-of-vim&#x2F;" rel="nofollow">http:&#x2F;&#x2F;rc3.org&#x2F;2012&#x2F;05&#x2F;12&#x2F;the-grammar-of-vim&#x2F;</a>
nwmcsweenover 6 years ago
&#x27;Learn emacs instead&#x27;<p>I would say emacs can be a lot more complex than vim, I mean people use it as basically an OS.
BlackLotus89over 6 years ago
First of all the article is from (2007).<p>This is just another love letter to vi&#x2F;vim that lists &quot;misconceptions&quot; people tend to have and tries to debunk them.<p>Me personally, I didn&#x27;t have any of the misconceptions listed in there. My beef with vi&#x2F;vim lies somewhere else. So let&#x27;s tackle the question &quot;Why, oh WHY, do those #?@! nutheads use vi?&quot; and here is my top list of problems I have with vi(m)<p><i>1)</i> most people I know don&#x27;t know how to use vi(m)<p>I know quite a lot of people who use it, but those people don&#x27;t use any advanced functionality. They basically use it like this<p><pre><code> i &lt;do stuff&gt; &lt;esc&gt; :wq </code></pre> some of those people recommend vim to other people and when asked why they use it all argue with how powerful it is and that it is installed &quot;everywhere&quot;, but nobody uses the powerful functionality (anecdotally it&#x27;s less then 10%)<p><i>2)</i> vi is installed by default everywhere - but what vi?<p>There is<p>* nvi (used in void linux in version 1.81) <a href="https:&#x2F;&#x2F;sites.google.com&#x2F;a&#x2F;bostic.com&#x2F;keithbostic&#x2F;vi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sites.google.com&#x2F;a&#x2F;bostic.com&#x2F;keithbostic&#x2F;vi&#x2F;</a><p>* ex-vi (used in archlinux) <a href="http:&#x2F;&#x2F;ex-vi.sourceforge.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;ex-vi.sourceforge.net&#x2F;</a><p>* vim-minimal (used in red hat) <a href="http:&#x2F;&#x2F;www.vim.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.vim.org&#x2F;</a><p>* vim (yeah ubuntu uses afaik &quot;vim.basic&quot;) <a href="http:&#x2F;&#x2F;www.vim.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.vim.org&#x2F;</a><p>Then there are busybox vi, neatvi and neovim (that&#x27;s what I use)<p>Anyway they all &quot;should&quot; behave the same, but they have non overlapping functionality and behave different (even depending on the terminal you use. I more then once had problems depending on the TERM variable set)<p><i>3)</i> you probably have to carry over you config wherever you go<p>Let&#x27;s be real here. If you use vi(m), _really_ use vim, you probably have your default config. Maybe on github, maybe on your homepage, maybe on an usb drive or memorized. I know people with multiple vim configs for different use cases. The defaults I find are not usable for most. And some functionality doesn&#x27;t carry over from vim to vi.<p>And even thought I say that the defaults suck, the default behavior changes from version to version. For example the smart indent functionality on older versions is different than it is now and they changed the crypto for the encryption (imho vim shouldn&#x27;t support encrypting of documents anyway [see point 5] these were just the 2 examples that came to mind first). Meeh<p><i>4)</i> you have to use plugins<p>Yeah plugins are great. You don&#x27;t have to use plugins, but you for sure _want_ to use plugins. With the right plugins vim can even be a really good IDE. But you have to manage them, update them and again: on every machine you use you have to carry it over.<p>What plugin manager do you use? vim-plug? vundle? pathogen? Or maybe something entirely different? You don&#x27;t want to manage them by hand and you are gonna need one. So get comfortable choosing one and setting it up everywhere.<p><i>5)</i> vims original goal (afaik) was to adhere to the kiss principal<p>but it failed. vim now has the kitchen sink. If you install vim you pull in more than 30mb (yeah today it doesn&#x27;t seem like much, but I like having a small footprint no matter what I do)<p>If you can read mails in your editor you are doing it wrong (sorry emacs users)<p>_____________________________<p>So the reasons why I don&#x27;t like vim or why people shouldn&#x27;t use vim aren&#x27;t the ones listed on the site.<p>PS maybe you want to take a look at vis if you want to see what vim should have been.<p>edit. formatting
评论 #18584173 未加载
评论 #18584453 未加载
TrolTureover 6 years ago
Vim is my main editor, my main gripe is that it performs terribly (without any plugins) with either relative numbers, cursor line or syntax highlighting in files larger than 200 lines.
评论 #18584573 未加载
0db532a0over 6 years ago
I’ve found that a majority of people who use vi(m) and profess to hate Emacs because of the complexity of its shortcuts also spend their whole time in insert mode, using only the arrow keys for movement, leading me to think that these people just hate efficient editing in general.
stochastic_monkover 6 years ago
This does not match my experience at all.<p>Most people I know use vim and the holdouts use emacs (except for Java developers using Eclipse).<p>No one in my circles thinks using vim is any cooler or harder than any other editor per se, but it generally meets people’s needs well.