Last active
August 28, 2017 10:12
-
-
Save rasbt/7566723 to your computer and use it in GitHub Desktop.
vimrc file for c++ and python code syntax support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " 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