Skip to content

Commit

Permalink
vim sudo save
Browse files Browse the repository at this point in the history
  • Loading branch information
lvu committed Jun 23, 2016
1 parent f9dd660 commit dc725ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ let g:neocomplete#force_omni_input_patterns.python =
\ '\%([^. \t]\.\|^\s*@\|^\s*from\s.\+import \|^\s*from \|^\s*import \)\w*'

set foldlevelstart=20

" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %

0 comments on commit dc725ca

Please sign in to comment.