Skip to content

Instantly share code, notes, and snippets.

@hydra35
Created January 18, 2012 17:24
Show Gist options
  • Save hydra35/1634253 to your computer and use it in GitHub Desktop.
Save hydra35/1634253 to your computer and use it in GitHub Desktop.
vimrc for C programming
set nocompatible
set autoindent
set smartindent
set cindent
set tabstop=4
set shiftwidth=4
set expandtab
set cinoptions=(0,:0,l1,t0
filetype plugin indent on
au FileType make setlocal noexpandtab
au BufRead,BufNewFile *.am setlocal noexpandtab
match ErrorMsg /\s\+$\| \+\ze\t/
syntax on
filetype on
nnoremap <silent> <F4> :TlistToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment