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 I can’t stop using Vim

116 pointsby gcmallocalmost 11 years ago

19 comments

manish_gillalmost 11 years ago
I spent this entire weekend setting up Evil mode for Emacs, in the Emacs Starter Kit package. It&#x27;s been decent so far. Evil mode is surprisingly good, and I really don&#x27;t think it could come any closer to vim emulation for Emacs. Took a lot of googling around to set up some basic plugins that I need - projectile for CtrlP etc. I think the only thing that I need atm is Magit integration with Evil and I&#x27;ll be good to go.<p>What has been amazing so far is that even after using vim for almost 3 years, I&#x27;d been sort of afraid of diving deep into the config system (I made do with copy-pasting some popular vimrc files) and it was good enough, but in the short span of 2 days, I&#x27;ve actually gotten to know more about emacs configuration style than I ever did about vim. And I suspect it will only get better as I start to learn Emacs Lisp.
评论 #7961375 未加载
评论 #7961963 未加载
gnuvincealmost 11 years ago
I don&#x27;t really understand the comment about etags; if you use ctags in Vim, you&#x27;ll get the same kind of functionality. If you want something more advanced, Emacs has support for cscope and GNU Global which give you more features. Considering that he&#x27;s interested in having something better than VimScript and wants org-mode, it seems that Emacs + Evil would really be the best fit for him.
评论 #7961131 未加载
bnegrevealmost 11 years ago
I use a text editor because using a text editor that you&#x27;ve mastered is pleasant. (I&#x27;m an Emacs user fwiw.)<p>I think we should stop trying to rationalize this choice.<p>Or rather, we should realize that we like text editors because we went through a long training and acquired complex skills which are fun to put in practice. Being a power user of Emacs or Vim is is satisfying, the same way mastering a video game is satisfying.
评论 #7961256 未加载
评论 #7961547 未加载
farresitoalmost 11 years ago
I suffer from the same thing. I&#x27;ve gone even futher: I&#x27;ve customized my tiling wm to work with the vim keybindings; my file manager also works with those keybindings; I use vimperator, a firefox plugin, that has those keybindings...<p>There&#x27;s a lot of stuff that I wish were better in vim, but, at the end of the day, it gets my work done better than anything else out there, so I don&#x27;t have any reason to move away from it. It works amazingly well with tmux (otherwise, I would be using emacs + evil -which I actually use for Clojure-). And I&#x27;m pretty excited about neovim :). They are doing an outstanding job.
评论 #7961682 未加载
disputinalmost 11 years ago
&quot;&#x2F; for searching (really, no other editor has made it this simple)&quot; Well, it&#x27;s really esc-&#x2F; which is no easier than ctrl-f. Or am I missing something?<p>Edit:<p>Same with &quot;1G to go to the top of the file, G to go to the bottom&quot; - esc-1-shift-g vs ctrl-home. Same with ctrl-end.
评论 #7961004 未加载
评论 #7960998 未加载
评论 #7961055 未加载
评论 #7961007 未加载
评论 #7961014 未加载
评论 #7961029 未加载
评论 #7961589 未加载
评论 #7960996 未加载
评论 #7961006 未加载
noelwelshalmost 11 years ago
Funnily enough, I&#x27;m going to other way: long time Emacs users, getting closer to switching to evil-mode (Vi emulation in Emacs). Doubt I&#x27;ll ever leave Emacs though.<p>As an aside, how does one keep up with Emacs package development? There is lots of stuff that&#x27;s new to me (e.g. I just found out about company-mode). I&#x27;d like to have some way to have this information pushed to me, rather than having to go searching.
评论 #7961094 未加载
评论 #7961129 未加载
评论 #7961089 未加载
cm127almost 11 years ago
First you&#x27;ll learn how to orientate around text quickly using normal mode, then you&#x27;ll start playing with tabs, splits and buffers to search between multiple files, and then you&#x27;ll start using registers to save phrases and regular expressions to search directories. At that point you&#x27;ll never want to leave Vim again.<p>:wq
评论 #7961698 未加载
评论 #7962616 未加载
评论 #7961213 未加载
sceleratalmost 11 years ago
I&#x27;ve learned to love the modal nature of vim, or rather, the notion that text entry (&#x27;insert&#x27; mode) is merely one aspect of manipulating text. The combination of movement of commands is very powerful and these days I feel naked when I use editors without this ability.<p>My first dedicated text editor was BBedit (when it was still freeware), and for many years had extended experiments with other editors, always eventually returning to BBEdit. Something about it always clicked with me, and I felt like Siegel and co. fundamentally understood both the Mac and the needs of programmers.<p>These days I keep BBedit around for its excellent diff tool, syntax-highlighted multi-file grep search and replace, and its decent project browsing. But it&#x27;s mostly a supplement to vim (MacVim), which I use all the time when I&#x27;m actually in there editing text.
VLMalmost 11 years ago
One feature he missed is its not as configurable, and in some situations that is awesome.<p>So you&#x27;re doing something weird, manually, but I repeat myself because if it was BAU you&#x27;d automate the whole process in puppet or similar. The local vim will work more or less like every other vim out there. Can&#x27;t really say that with emacs.<p>If you&#x27;re traveling somewhere weird, vim is a great travel companion. Not because it can be compiled anywhere (lots of editors can be compiled anywhere) but because it works the same anywhere.
评论 #7963503 未加载
bokchoialmost 11 years ago
Yay, I&#x27;m glad J got a shout-out even if it is one of the rejected editors. I&#x27;ve loved using J in the past and have even made a few releases of J on sourceforge [0]. I&#x27;ve attempted to move to github as well [1]. Sadly, I haven&#x27;t found much time to work on it -- paid work and family take precedence. Oh, and I too love using vim as well.<p><pre><code> [0] http:&#x2F;&#x2F;armedbear-j.sourceforge.net&#x2F; [1] https:&#x2F;&#x2F;github.com&#x2F;kevinkrouse&#x2F;j&#x2F;tree&#x2F;master&#x2F;j</code></pre>
geoka9almost 11 years ago
&gt; and ‘Esc’ to move around again.<p>For me personally this is the reason I stopped using Vi(m) except for occasional config file editing on unfamiliar servers, and started looking elsewhere (Emacs) for my goto text editor. I&#x27;m not looking to switch, but it genuinely interests me how Vi users put up with the constant need to strain their pinky to switch to command mode.
评论 #7961980 未加载
评论 #7961749 未加载
评论 #7961760 未加载
评论 #7961765 未加载
RichardFordalmost 11 years ago
I can&#x27;t stop using vi key bindings, whether that&#x27;s Evil for Emacs, VsVim for Visual Studio, the Intellij one, Sublime, etc..<p>But my days of using straight Vim are over. For a straight text editor, I finally got over the hump with Emacs recently, and I&#x27;m not going back.
danfordalmost 11 years ago
I went back to Sublime after using Vim for a while but then realized I was going to have a terminal open 24&#x2F;7 anyway so what&#x27;s the point? Then I learned how to use a terminal multiplexer and now Sublime and other GUI editors just hinder my workflow. IMHO if you&#x27;re a programmer you should know how to use a terminal to the point that you prefer it over most GUIs (of course, you should always use whatever has the feature you <i>need</i>).<p>Oh, and on a side note:<p>Vim and terminal usage <i>is not</i> a &quot;time sink&quot; and it pains me whenever I hear people who consider them selves &quot;programmers&quot; claim it to be. If you haven&#x27;t learned how to use the terminal yet (or haven&#x27;t found a use for it) then you aren&#x27;t a respectable programmer IMHO. I would not read a book on programming by someone who doesn&#x27;t know how to use a terminal and I would not take a class on programming taught by a professor who doesn&#x27;t know how to use a terminal.
评论 #7961178 未加载
评论 #7961298 未加载
评论 #7961203 未加载
评论 #7961607 未加载
评论 #7961635 未加载
评论 #7961850 未加载
评论 #7961349 未加载
评论 #7961197 未加载
alwillisalmost 11 years ago
It’s great that people are so inspired by Vim that they continue to create new plugins, tutorials and websites like Vim Awesome: <a href="http://vimawesome.com" rel="nofollow">http:&#x2F;&#x2F;vimawesome.com</a>
评论 #7969378 未加载
spacemanmattalmost 11 years ago
Even now that I&#x27;m practically married to SublimeText, I can&#x27;t stop using classic mode and I still sometimes end up in vim by force of habit.
dominotwalmost 11 years ago
&gt;q to record a macro; @ to execute it again<p>Is using macros&#x27; really common? I haven&#x27;t yet figured out in when and where to use macros during my workflow.
评论 #7961280 未加载
评论 #7961518 未加载
评论 #7961357 未加载
评论 #7961507 未加载
评论 #7961255 未加载
readalmost 11 years ago
What I never heard explained in one sentence about vi is: why have multiple modes? Why not zero modes instead?
评论 #7961190 未加载
评论 #7961206 未加载
评论 #7961287 未加载
评论 #7961187 未加载
评论 #7961949 未加载
评论 #7961767 未加载
评论 #7961185 未加载
arooarooalmost 11 years ago
I know this is a minor point but using &#x27;gg&#x27; to move to the first line is easier than &#x27;1G&#x27;.
评论 #7961096 未加载
icantthinkofonealmost 11 years ago
It&#x27;s unfortunate that, to me, the title implies there&#x27;s something wrong with a person who still uses vim and nothing could be further from the truth.
评论 #7961026 未加载