Use suda.vim for SudoWrite and SudoEdit
This commit is contained in:
parent
9d481edb14
commit
c9584b196c
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://%
|
|
@ -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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue