Skip to content

Instantly share code, notes, and snippets.

@evuez
Created November 30, 2015 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evuez/47fe0457b4212cbae42b to your computer and use it in GitHub Desktop.
Save evuez/47fe0457b4212cbae42b to your computer and use it in GitHub Desktop.
" This must be first, because it changes other options as a side effect.
set nocompatible
" Make backspace behave in a sane manner.
set backspace=indent,eol,start
" Switch syntax highlighting on
syntax on
" Enable file type detection and do language-dependent indenting.
filetype plugin indent on
" Show line numbers
set number
" Force wrap at col 72 for git commit bodies
au FileType gitcommit set tw=72
au FileType gitcommit call setpos('.', [0, 1, 1, 0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment