Skip to content

Instantly share code, notes, and snippets.

@danudey
Created December 8, 2015 22:53
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 danudey/e3ba54fa1d937605f31e to your computer and use it in GitHub Desktop.
Save danudey/e3ba54fa1d937605f31e to your computer and use it in GitHub Desktop.
A simple custom vimrc
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set smartcase " Do smart case matching
set incsearch " Incremental search
set mouse=a " Enable mouse usage (all modes)
set encoding=utf-8 " Set default file encoding
syntax on " Enable syntax highlighting
filetype plugin indent on " When loading a syntax plugin, load filetype indent rules
" These are default on our servers but not necessarily elsewhere
set expandtab " 'Soft tabs'
set tabstop=4 " The width to display a literal \t as
set shiftwidth=4 " When indenting/unindenting with << / >>, shfit by 4
set softtabstop=4 " 'Soft tabs' indent by 4 spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment