Skip to content

Instantly share code, notes, and snippets.

@odyssey4me
Last active January 26, 2016 22:13
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 odyssey4me/74d9ebc4c13d174bc3eb to your computer and use it in GitHub Desktop.
Save odyssey4me/74d9ebc4c13d174bc3eb to your computer and use it in GitHub Desktop.
" Remove old vi compatibility
set nocompatible
" Enable Syntax Highlighting
filetype on
filetype plugin on
syntax enable
set grepprg=grep\ -nH\ $*
" Use spaces instead of tabs
set expandtab
set smarttab
" Set tab width
set shiftwidth=4
set softtabstop=4
set tabstop=8
" Set backspace to remove lines, etc
set bs=2
" Use colors that look good on a dark screen
set background=dark
" Show the ruler
set ruler
" Set text wrapping
" set tw=78
" Show tabs, end of line, etc
set list
set listchars=tab:>-,extends:#
" Allow the use of modelines
set modeline
" Disable auto indent
filetype indent plugin off
" Show trailing whitespace
:highlight ExtraWhitespace ctermbg=red guibg=red
:match ExtraWhitespace /\s\+\%#\@<!$/
Show lines that are over 80 chars long
highlight OverLength ctermbg=darkred ctermfg=white guibg=#FFD9D9
match OverLength /\%81v.*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment