Skip to content

Instantly share code, notes, and snippets.

@willshiao
Created October 29, 2015 06:07
Show Gist options
  • Save willshiao/e935d52f125f1ca1d151 to your computer and use it in GitHub Desktop.
Save willshiao/e935d52f125f1ca1d151 to your computer and use it in GitHub Desktop.
My .vimrc file.
syntax on
set nocompatible " break away from old vi compatibility
set number " Line numbers
set backspace=2 " Normal backspaces!
set ruler " show current position at bottom
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
set smarttab " tab and backspace are smart
set autoindent " set the cursor at same indent as line above
set shiftwidth=4 " spaces for each step of (auto)indent
set tabstop=4 " for proper display of files with tabs
set expandtab
set showmatch " show matching brackets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment