Created
May 19, 2017 15:23
-
-
Save jvehent/7be4f2b76033ad9111055f310e1894bf to your computer and use it in GitHub Desktop.
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
| "Languages that use spaces, not tabs | |
| autocmd FileType js :setlocal sw=4 ts=4 sts=4 expandtab | |
| autocmd FileType lua :setlocal sw=2 ts=2 sts=2 expandtab | |
| autocmd FileType python :setlocal sw=4 ts=4 sts=4 expandtab | |
| autocmd FileType yaml :setlocal sw=4 ts=4 sts=4 expandtab | |
| autocmd FileType pp :setlocal sw=4 ts=4 sts=4 expandtab | |
| "Languages that use tabs, not spaces | |
| autocmd FileType php :setlocal sw=3 ts=3 sts=3 noexpandtab | |
| autocmd FileType c :setlocal sw=6 ts=6 sts=6 noexpandtab | |
| autocmd FileType cpp :setlocal sw=4 ts=4 sts=4 noexpandtab | |
| autocmd FileType rst :setlocal sw=4 ts=4 sts=4 noexpandtab wrap textwidth=80 | |
| autocmd FileType go :setlocal sw=6 ts=6 sts=6 noexpandtab | |
| autocmd FileType go call tagbar#autoopen(0) | |
| autocmd FileType mediawiki :setlocal sw=4 ts=4 sts=4 noexpandtab wrap linebreak textwidth=120 | |
| autocmd FileType markdown :setlocal sw=4 ts=4 sts=4 wrap linebreak textwidth=80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment