Skip to content

Instantly share code, notes, and snippets.

@rpicard
Last active August 29, 2015 14:04
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 rpicard/ca5c549b30c7528edf16 to your computer and use it in GitHub Desktop.
Save rpicard/ca5c549b30c7528edf16 to your computer and use it in GitHub Desktop.
syntax on " Syntax highlighting
set relativenumber " Line numbers
set ruler " Show the line and column number
""" Whitespace
set autoindent " Copy current lines indentation when creating new line
set expandtab " Use the appropriate number of spaces to insert a tab
set smarttab
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent
set tabstop=4 " Number of spaces to use for <Tab>
autocmd FileType make setlocal noexpandtab " Use real <Tab>s for Makefiles
set ff=unix " Set filetype to UNIX
"call pathogen#infect() " Pathogen is a plugin bundle manager
set wildmode=longest,list " bash-like :e tab-completion
" Prevent trailing whitespace
:highlight TrailWhitespace ctermbg=red guibg=red
:match TrailWhitespace /\s\+$\| \+\ze\t/
colorscheme desert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment