Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Just my vim setup which includes the .vimrc file and also all the vim plugins that I use (installed with pathogen)

branch: master
readme.md

Introduction

First a quick thanks to everyone who has posted their .vimrc files and vim setups online so wannabe vim users like me can learn and copy from :o). Some of the more helpful vim setups I have stumbled across include:


Installation

For myself I store everything in the .vim folder in my home directory. Though in theory you could clone the project anywhere, you will just have to create an additional symlink from .vim to the project folder. To get started run the following:

git clone git://github.com/cengebretson/vim.git ~/.vim

Create a symlink to the new .vim directory (or wherever you cloned the project) for the .vimrc file.

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

For the most part I try to use the amazing pathogen and git submodules maintain the different vim plugins that I use. The easiest way to load and update all of the git submodules is to run the following commands (assumes you are using .vim for your vim setup):

cd ~/.vim
git submodule init
git submodule update

Updating Submodules

To later update the submodules to the their latest versions from github you can run the following command.

git submodule -q foreach git pull -q origin master

Adding new Submodules

To add a new submodule to to the pathogen bundle folder you can use the following steps...

git submodule add https://github.com/cengebretson/super-duper-vim-plugin.git bundle/super-duper
git submodule init
git submodule update

Removing unwanted Submodules

To remove a submodule that you don't want to use, follow the steps below.

  1. Delete the relevant line from the .gitmodules file.
  2. Delete the relevant section from .git/config file.
  3. Run git rm --cached path_to_submodule (with no trailing slash).
  4. Commit your changes and delete the now untracked submodule files.

Custom Key Mappings

Some of the custom key mappings that I have been using...


Plugins

A couple of notes on some of the vim plugins and bundles that are included.


Other Notes

Currently I use vim mostly with MacVim but in the not so distant future I hope to put some time into making this setup a little more cross platform friendly.

Another thing I did with my .vimrc setup is turn backups and swap files off since I figure this is what version control is for.

The font I ended up using is called Inconsolata which is a free font created by Raph Levien. The website Hivelogic has a great article on some of the best programming fonts.

Vim feels like one of those tools that you could work with for years but still learn new things every day. Here are some of the sites that have helped me:


Setup macvim as default editor

From (http://superuser.com/questions/231854/default-editor-for-files-without-file-name-extension-in-mac-os-x))

open ~/Library/Preferences/com.apple.LaunchServices.plist

Add an entry (dictionary) under LSHandlers containing the following keys/values:

LSHandlerContentType = public.plain-text
LSHandlerRoleAll = org.vim.macvim

Thanks!

Chris Engebretson - snarkydog.com

Something went wrong with that request. Please try again.