Skip to content

Instantly share code, notes, and snippets.

@rasbt
Last active August 28, 2017 10:12
Show Gist options
  • Select an option

  • Save rasbt/7566723 to your computer and use it in GitHub Desktop.

Select an option

Save rasbt/7566723 to your computer and use it in GitHub Desktop.
vimrc file for c++ and python code syntax support
" Sebastian Raschka
" 09/11/2013
"
syntax on
set nonumber
set ruler
set tabstop=4
set shiftwidth=4 " controls the depth of autoindentation
set expandtab " converts tabs to spaces
set laststatus=2 " show status line always
autocmd Filetype cpp setlocal expandtab tabstop=2 shiftwidth=2
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment