Allow saving files as sudo
This commit is contained in:
6
init.vim
6
init.vim
@@ -128,7 +128,11 @@ nnoremap <Leader>{ mzF[`a<cr><Esc>``%i<cr><Esc>`z
|
||||
nnoremap <Leader>} mzF[`a<cr><Esc>``%i<cr><Esc>`zvi[:s/,\s*/,\r/g<cr>vi[=<Esc>`z:nohlsearch<cr>
|
||||
|
||||
"A command to properly indent json code
|
||||
com! FormatJSON %!python -m json.tool
|
||||
command! FormatJSON %!python -m json.tool
|
||||
|
||||
" Allow saving of files as sudo
|
||||
command! W execute 'silent! w !sudo /usr/bin/tee % >/dev/nuull' <Bar> edit!
|
||||
|
||||
" }}}
|
||||
|
||||
" Plugins --- {{{
|
||||
|
||||
Reference in New Issue
Block a user