Allow saving files as sudo

This commit is contained in:
2021-05-17 21:08:28 +01:00
parent 17d7beb6f8
commit b4987eec8d

View File

@@ -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 --- {{{