Dotfiles & Vim

My “dotfilesrepo is a decade old now, and it has been interesting to see a progression through

  • .vimrc (ye olde days)
  • init.vim (“modern” vim)
  • init.lua (All-in on Lua with NeoVim)

(is there a moral to this story? perhaps “don’t be surprised at how much practices and tools change over time”, and “try to identify things that don’t change”)

Vundle > Pathogen

Because why even download/clone/submodule stuff, when you can just mention it by name!

vimrc gets the following

set rtp+=~/.vim/bundle/vundle/

call vundle#rc()

Then you just mention the bundles by name

e.g.

Bundle ‘kovisoft/slimv’

and there’s a one time :BundleInstall that you need to run for vundle to copy over the plugins … and you’re all set!

How did I live without Pathogen all this while ?

Putting it to use with some clojure plugins:

mkdir -p ~/.vim/autoload ~/.vim/bundle
curl -Sso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
cd ~/.vim/bundle
git clone git://github.com/tpope/vim-fireplace.git
git clone git://github.com/tpope/vim-classpath.git
git clone git://github.com/guns/vim-clojure-static.git

And the .vimrc gets execute pathogen#infect() at the top

Like Fangorn, ancient and deep, with hints of the long labor of a great people. There is, supposedly, a monumental city of stone down here somewhere but it’s so dark I can’t see a damn thing. No, wait! A shaft of light illuminates some runes! They read as follows:

^C^C^X^X^X^Xquit
qQ!qdammit[esc]qwertyuiopasdfghjkl;
:xwhat

The Wizard translates: “We cannot get out! We cannot get out! They are coming!”