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.

A Good Vimrc (2014)

298 pointsby basenameabout 8 years ago

11 comments

wodnyabout 8 years ago
I don&#x27;t believe it&#x27;s possible to have a good vimrc without really grasping some elementary concepts like movements, operators, registers, windows etc. I have recently watched all the Drew Neil&#x27;s VimCasts[1] and after just a couple of hours I&#x27;ve realized I was missing a lot for at least 10 years. There is also quite a good presentation on YouTube by Max Cantor &quot;How to Do 90% of What Plugins Do (With Just Vim)&quot;[2]. Instead of treating a single vimrc as the best one it&#x27;s useful to skim through dotfiles and plugins of some influential vim users like Drew Neil[3] and Tim Pope[4]. BTW VimCasts are accompanied by a book. The second edition[5] includes changes introduced by Vim 8.0.<p>[1]: <a href="http:&#x2F;&#x2F;vimcasts.org&#x2F;episodes&#x2F;" rel="nofollow">http:&#x2F;&#x2F;vimcasts.org&#x2F;episodes&#x2F;</a> [2]: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=XA2WjJbmmoM" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=XA2WjJbmmoM</a> [3]: <a href="https:&#x2F;&#x2F;github.com&#x2F;nelstrom&#x2F;dotfiles" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nelstrom&#x2F;dotfiles</a> [4]: <a href="https:&#x2F;&#x2F;github.com&#x2F;tpope" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tpope</a> [5]: <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>
评论 #13906969 未加载
评论 #13908207 未加载
lifthrasiirabout 8 years ago
&gt; Don&#x27;t put any lines in your vimrc that you don&#x27;t understand.<p>Actually true for most human-configurable setting files.
评论 #13905743 未加载
评论 #13906441 未加载
syncopatienceabout 8 years ago
I wonder why text editor preferences are so personal. I use the same editor and probably 90% of the same config as this guy and was nodding along until I saw he remapped B and E. Horrifying! Those are fundamental motions.
评论 #13906513 未加载
评论 #13907214 未加载
inetknghtabout 8 years ago
The literal worst of vimrc is the _default_ settings of many Linux distributions these days. Colors are fine, but _behavior_-changing stuff is not. I would be happier if package installers included a brief configurator as part of installation.<p>Do you want to use tabs when you press tab, or spaces? If spaces, then _how many_?<p>Do you want to automatically (infuriatingly IMO) continue comments and completely wreck the ability to paste text without also _telling_ vim that you intend to paste via the `set paste` command?<p>Simple stuff like that, you know?
评论 #13908154 未加载
评论 #13912602 未加载
nichocharabout 8 years ago
I&#x27;ve been using VIM for a while, and I&#x27;m always delighted to read articles or examples of good .vimrc&#x27;s, but this one tops them all, because of the perfect balance of cool features and concise explanations. Good job, OP, what a wonderful blog post, I learned a couple nice things too!
Godel_unicodeabout 8 years ago
Now just add the section about uploading it to your GitHub so all new servers get setup with a simple git clone, and any new changes can be propogated around with push&#x2F;pull.
评论 #13905685 未加载
评论 #13905832 未加载
评论 #13905695 未加载
preekabout 8 years ago
Since this article is written in kind of a &quot;literate programming style&quot;, I&#x27;ll plug and share my Emacs config that is actually written in literate programming: <a href="https:&#x2F;&#x2F;github.com&#x2F;munen&#x2F;emacs.d&#x2F;blob&#x2F;master&#x2F;configuration.org" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;munen&#x2F;emacs.d&#x2F;blob&#x2F;master&#x2F;configuration.o...</a><p>Nice documentation like this fine blog post for free^^
评论 #13906607 未加载
eugeneionescoabout 8 years ago
This article would have been much better with screenshots.
godmodusabout 8 years ago
Good write up. Ive been looking into Now this might sound like heresy but I&#x27;ve been considering moving to emacs lately and using evil mode.<p>The thing that gets me is vim&#x27;s lack for auto completion for stuff like scala. Has anyone managed to set that up?
评论 #13906676 未加载
评论 #13905931 未加载
评论 #13905892 未加载
amingilaniabout 8 years ago
My Chrome on Android is getting a certificate error for this website.
htorabout 8 years ago
The best vimrc is no vimrc at all.