My Vim configuration files

Vim Logo

Some people in the comments of this article and this article requested my vimrc file. Rather than just providing it, I think it is better to check it into a source repository so people can get the latest version. You can get all my Vim files here:

GitHub Repository

I prefer to keep the vimrc and gvimrc in the vim folder, then symlink them to my home folder. I think this keeps things more organized. The commands are (on a *nix system):

ln -s ~/vim/vimrc ~/.vimrc
ln -s ~/vim/gvimrc ~/.gvimrc

I mod these files all the time, and sometimes I break stuff, however I usually fix them quickly as Vim is my main editor. Here are a few things to note:

  • My main platforms are OS X and Linux (Debian based in command-line, not XWindows), so if your platform differs you may have issues (most likely not)
  • I'm using the latest version of Vim, and my config expects it
  • Somethings require ruby to be compiled into Vim (this is default in MacVim), however there are no major errors if it isn't, as I use these Vim files all the time in vanilla Vim

Let me know if you find any problems, or there is a better way to do something that I did, I'm always interested in learning more about Vim. Happy coding.

Share:
dzone del.icio.us digg it reddit spurl simpy blinklist furl blogmarks magnolia

  1. Sam December 26, 2008 17:35 

    Thanks for sharing the files and your color scheme is awesome. It is so comfortable on my poor eyes.

  2. Appler November 18, 2008 01:17 

    Thank you so much!!

    ^_^

  3. Rana November 25, 2009 10:59 

    The link to git hub repository doesn't, do you have any other link where your "vimrc" is uploaded?

  4. yaar December 21, 2009 10:25 

    can't thank you enough!! :)
    I got a mac,
    I embraced your terminal IR_black theme (lovin it!), and also wanted it for my vim,
    I didn't have a ~/.vim dir nor the .vimrc and .gvimrc files at all, so I just created it all and copied your settings from the repository you gave above, again lots of thanks.
    I got one question, after doing this all, I'm getting this warning when opening vim:
    "
    Error detected while processing /Users/<myusername>/.vimrc:
    line 100:
    E28: No such highlight group name: LongLineWarning
    "
    how can I fix it?
    (assuming I want this line length formatting warning to be set)

  5. Olmo Maldonado December 26, 2009 20:47 

    @yaar. You'll need to have it defined in the ir_*.vim files inside of etc/colors folder.

    I did the following (which works):

    mkdir ~/sources; cd ~/sources;
    git checkout git://github.com/twerth/dotfiles.git
    cd ..
    ln -s ~/sources/dotfiles/etc/vim ~/.vim/
    ln -s ~/.vim/vimrc ~/.vimrc
    ln -s ~/.vim/gvimrc ~/.gvimrc

  6. jurlan January 10, 2010 09:19 

    @Olmo

    I am having the same problem as yaar.
    Your solution seems perfectly logic, but I'm stuck at the git part
    I installed git-core through sudo port install git-core
    but when I run git checkout git://github.com/twerth/dotfiles.git it tells me:
    fatal: Not a git repository (or any of the parent directories): .git
    so I run git init in the ~/sources dir, run the checkout commang again and then it tells me:
    error: pathspec 'git:/github.com/twerth/dotfiles.git' did not match any file(s) known to git.

    Thanks in advance for helping me out here.

Leave a new comment:     = Required


(will not be shown)