Skip to content

Instantly share code, notes, and snippets.

@benzittlau
Created November 16, 2014 21:59
Show Gist options
  • Save benzittlau/8d9a046acb57640ec97e to your computer and use it in GitHub Desktop.
Save benzittlau/8d9a046acb57640ec97e to your computer and use it in GitHub Desktop.
Basic .vimrc example
" Highlight searches
set hlsearch
" Case sensitivity
set ignorecase
set smartcase
" Automatic Indenting
set autoindent
" Enable use of the mouse
set mouse=a
" Display line numbers on the left
set number
" Indentation settings
" set shiftwidth=2 " How far using >> indents text
" set softtabstop=2 " How many columns vim inserts when you hit tab
" set expandtab " Hitting tab will insert spaces
" Sets how many lines of history VIM has to remember
set history=700
" Makes search act like search in modern browsers
set incsearch
" Make undo's persistent across vim closes
set undofile
" Start scrolling before you hit bottom
set scrolloff=8
" Replace all matches in a line by default
set gdefault
" Allows backspace to delete characters before the insert location
set backspace=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment