Use suda.vim for SudoWrite and SudoEdit

This commit is contained in:
crater2150 2019-12-26 18:39:46 +01:00
parent 9d481edb14
commit c9584b196c
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1,2 @@
command! -nargs=? -complete=file SudoEdit exec ':e suda://' . fnamemodify(empty(<q-args>) ? expand('%') : <q-args>, ':p')
command! SudoWrite :w suda://%

View file

@ -40,6 +40,7 @@ Plug 'junegunn/fzf.vim'
Plug 'mileszs/ack.vim' Plug 'mileszs/ack.vim'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'lambdalisue/suda.vim'
Plug 'vim-scripts/SyntaxRange' Plug 'vim-scripts/SyntaxRange'