The cleanest vimrc you'll ever see
yanpritzker.com
yanpritzker.com
$ cat ~/.vimrc
cat: /home/evanm/.vimrc: No such file or directory
I mean, it's cool and all that you love your tools, but I suspect these sorts of blog posts are net harmful when you consider the number of people who will read it and take it as an opportunity to fiddle around with settings in a program as a way of further putting off making something meaningful.I'll agree with you though I like to have at least a few in there like autoindent, various tabstop and search related settings, or syntax highlighting.
this is a good approach to vi, as well :P
alias vim=pico
alias pico=nano
alias nano=emacs alias emacs=vim
Recursion++;;)
My .vimrc is has a good deal of custom stuff that I rely on during day to day coding, but on occasion when I have to use, say, busybox's 'vi' (which by the way isn't even quite POSIX) I very rarely have any trouble at all. Certainly not enough trouble to negate the productivity gain I see with my .vimrc.
As so many I started my 'vim-experience' by adding a lot of plugins, rc-settings, themes etc.
Finally I almost used as much time configuring, backing up my dot files and tweaking as I used on real actual programming.
I understand some settings are crucial (or may be nice), but I would recommend you use more time thinking and implementing your application.
I firmly believe that the KISS-principle (Keep it simple, stupid) is as important to IDE/Editors as it is writing software code.
Plus, all I have to do is track my .vimrc in my dotfiles repo and let Vundle manage my plugins for me.
Nowadays, my emacs init file is 239 kB. Is it messy? Yes, in some places, for customizations I don't care that much, it is, because each section I rely on constantly gets constantly refactored.
Modularization helps when you are going to share code among different projects, but your init file is a single project, what does splitting it buys you? Only increased complexity. Of course, as soon as functions get refactored and made more general and independent, they go into a module of their own.
Ugh, why? Remapping caps-lock to Ctrl makes more sense to me. The Escape key is still in the upper-left, and banging somewhere in that vicinity usually hits it. Also Ctrl-C equals Escape in vim, so you still have quick access to it from the home row if you want.
"Ctrl if it's held down and pressed with another key, Escape if it's pressed and released on its own."
It works really nicely once you get used to it.
EDIT:
To do that I first mapped Capslock to Ctrl using the normal Apple Keyboard prefs, then used KeyRemap4MacBook and checked this setting: http://i.imgur.com/99cNs.png
It's also useful outside of Vim, in almost any application Esc means "Cancel the current operation". The only disadvantage I see is that I'm constantly toggling Caps Lock on other PC's.
jj only an issue if you are tying things like jj.Reddick or jj abrams :)
If you do map something on top of it, consider moving it elsewhere.
If you use escape with vim you're actually "doing it wrong" in the sense that vim was not designed for your keyboard. On older keyboards escape was where the Tab key is now. There's no reason to abuse your wrists with repetitive motions going up to the escape key.
Edit: Woah, that guy needs to learn how to use Vundle and not embed third party files in his git repo, and let Vundle fetch it for him (look at mine for example)
Also, Vundle is pathogen inspired, its designed to be an easier way of doing the same thing, complete with automated updating for gitted stuff.
Pretty sure we can't be looking at the same repo, because as far as I can tell, these are git submodules https://img.skitch.com/20120120-jx8g6cpj8amdagh6dtfbyjtjbp.j... (screenshot)
Re: Keeping up to date
git submodule foreach git pull origin master --recurse-submodules vim --startuptime time.txt