Use suda.vim for SudoWrite and SudoEdit
This commit is contained in:
parent
9d481edb14
commit
c9584b196c
2 changed files with 3 additions and 0 deletions
2
after/plugin/sudowrite.vim
Normal file
2
after/plugin/sudowrite.vim
Normal 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://%
|
Loading…
Add table
Add a link
Reference in a new issue