diff --git a/init.vim b/init.vim index ecb4ae5..1beb7ee 100644 --- a/init.vim +++ b/init.vim @@ -128,7 +128,11 @@ nnoremap { mzF[`a``%i`z nnoremap } mzF[`a``%i`zvi[:s/,\s*/,\r/gvi[=`z:nohlsearch "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' edit! + " }}} " Plugins --- {{{