Skip to content

Instantly share code, notes, and snippets.

@jamezpolley
jamezpolley / giteditor
Created May 26, 2011 05:03
Port of hgeditor to work with git
#!/bin/sh -x
#
# based on http://selenic.com/git/raw-file/tip/hgeditor
# and http://stackoverflow.com/questions/4750148/git-show-index-diff-in-commit-message-as-comment
#
# This is an example of using GITEDITOR to create of diff to review the
# changes while commiting.
#
# If you want to pass your favourite editor some other parameters
# only for Git, modify this:
@jamezpolley
jamezpolley / .vimrc
Created May 4, 2011 01:56
my .vimrc
" Things that need no explanation
set nocompatible
syntax on
set background=dark
" Tweaks to help mousiness work in normal vim inside an xterm.
set mouse=a
set ttymouse=xterm2
" Attempt to get sane indenting: