Skip to content

Instantly share code, notes, and snippets.

@zhiguangwang
Created April 8, 2016 04:10
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 zhiguangwang/4950c9fdfb30cd12762cf08bc3769f26 to your computer and use it in GitHub Desktop.
Save zhiguangwang/4950c9fdfb30cd12762cf08bc3769f26 to your computer and use it in GitHub Desktop.
Vim configurations with file indent and syntax highlighting.
" Enable different settings for different file types
" See: http://vim.wikia.com/wiki/Indenting_source_code
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" Enable syntax highlighting
syntax on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment