Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Created April 9, 2013 14:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinThoma/5346080 to your computer and use it in GitHub Desktop.
Save MartinThoma/5346080 to your computer and use it in GitHub Desktop.
My current .vimrc file.
syntax on " enable syntax highlighting
filetype on " enable file type detection
" Set some nice character listings, then activate list
set list listchars=tab:⟶\ ,trail:·,extends:>,precedes:<,nbsp:%
set list
" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
set number " turn on line numbers
set showmatch " show matching brackets
" Highlight current line
set cursorline
hi CursorLine cterm=NONE ctermbg=lightgrey
" Show when lines get too long
set textwidth=80
set colorcolumn=+1
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/
set autoindent " keep intendation level
hi SpecialKey ctermfg=white ctermbg=none cterm=none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment