Skip to content

Instantly share code, notes, and snippets.

@jabedude
Created August 29, 2017 14:45
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 jabedude/7d1417f662491cec636dd5f59e922239 to your computer and use it in GitHub Desktop.
Save jabedude/7d1417f662491cec636dd5f59e922239 to your computer and use it in GitHub Desktop.
set shiftwidth=8
set softtabstop=8
set tabstop=8
autocmd Filetype c setlocal foldmethod=syntax ts=4 sw=4 sts=4 expandtab
autocmd Filetype cpp setlocal foldmethod=syntax ts=4 sw=4 sts=4 expandtab
au FileType python setl sw=4 sts=4 et
autocmd FileType make set noexpandtab
augroup AutoSaveFolds
autocmd!
autocmd BufWinLeave ?* mkview
autocmd BufWinEnter ?* silent loadview
augroup End
set expandtab
set number
syntax on
set scrolloff=5
set autoindent
set laststatus=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment