Skip to content

Instantly share code, notes, and snippets.

@fabiojb
Last active November 26, 2020 22:16
Show Gist options
  • Save fabiojb/c00709ac6e36cd2aeba5decab6491030 to your computer and use it in GitHub Desktop.
Save fabiojb/c00709ac6e36cd2aeba5decab6491030 to your computer and use it in GitHub Desktop.
.vimrc
" Required packages: vim-syntastic flake8
syntax on
filetype plugin on
filetype indent on
set hlsearch
set nowrap
set number
" save file as root
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
" vim-syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment