Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.