Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

My Vim preferences

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 bundle
Octocat-spinner-32 pathogen @ 09f2c3b
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 irbrc
Octocat-spinner-32 pryrc
Octocat-spinner-32 update
Octocat-spinner-32 vimrc
README.md

My Vim Preferences

Installation

Linux / Mac OS X / Cygwin

Copy and paste this into a terminal:

bash -s < <(curl -s https://raw.github.com/brymck/dotvim/master/bin/install)

Explanation

The above script removes any preexisting personal Vim configuration, so backup anything you might wish to preserve going forward. This repo is then cloned into ~/.vim, and a symbolic link is created between ~/.vimrc and ~/.vim/vimrc, which allows you to update the repo and have the changes reflected instantly in Vim. Once the repo is cloned, all of the submodules -- links to Vim plugins -- are initialized and updated. A symbolic link is created for pathogen, which can then load all of the plugins found in ~/.vim/bundle.

The reason for all the symbolic links and git submodules is simple: from now on, you only have to update this repo and its submodules to have all changes reflected in Vim. And you can do this within Vim by typing ,u!

Note that you can add your own stuff to ~/.vimrc_custom, in the off-chance you disagree with any of my settings.

Windows

Note: This requires Vista or a more recent version of Windows (for mklink), and you must open the command prompt as an administrator (right-click > Run as administrator...). Also, some git commands in Windows have a nasty habit of causing the command prompt to "eat" subsequent pasted commands, so probably needs to be run in three parts.

cd "%UserProfile%"
rmdir vimfiles /S /Q
git clone http://github.com/brymck/dotvim.git vimfiles
del _vimrc
mklink _vimrc vimfiles\vimrc
cd vimfiles
git submodule init

git submodule update

mkdir autoload
cd autoload
mklink pathogen.vim ..\pathogen\autoload\pathogen.vim

You can add the optional stuff as follows:

cd "%UserProfile%\vimfiles"
bundle update
cd ..
del _pryrc
mklink _irbrc vimfiles\irbrc
mklink _pryrc vimfiles\pryrc

Updating

Within Vim, just type ,u

Easy enough, yes?

Plugins

This configuration utilizes the following plugins:

Tim Pope

  • endwise - Wisely add
  • fugitive - A Git wrapper so awesome, it should be illegal
  • haml - Haml and Sass syntax, indenting, and ftplugin
  • pathogen - Easy manipulation of 'runtimepath', 'path', 'tags', etc
  • rails - Ruby on Rails: easy file navigation, enhanced syntax highlighting, and more
  • surround - Delete/change/add parentheses/quotes/XML-tags/much more with ease
  • unimpaired - Pairs of handy bracket mappings

Marty Grenfell

  • The NERD Commenter - A plugin that allows for easy commenting of code for many filetypes.
  • The NERD tree - A tree explorer plugin for navigating the filesystem

Me

  • konjac - Some Vim integration for konjac
  • v1m - Some very minor functions for use in translating English to and from Japanese

Others

Something went wrong with that request. Please try again.