Created
October 28, 2013 10:59
-
-
Save whatot/7194937 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
| " add for the ~/linux which contains the linux kernel src, | |
| " So tabstop, shiftwidth, softtabstop = 8 and noexpandtab are needed | |
| " 10, 13, 16 come up with my several username | |
| " Can calculate it by :echo stridx(expand("~/linux/:p"), "linux") | |
| let linux_index = stridx(expand("%:p"), "linux") | |
| autocmd FileType c,cpp if linux_index == 10 || linux_index == 13 | |
| \ || linux_index == 16 | | |
| \ let b:syntastic_checkers = ['make'] | | |
| \ let g:syntastic_check_on_open = 1 | | |
| \ set tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab | endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment