feat(vim): add :W
command to "write as sudo" if opened as user
This commit is contained in:
parent
ac12d3ea97
commit
bb76bd82c5
|
@ -26,6 +26,9 @@ Plugin 'junegunn/fzf.vim'
|
|||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
||||
|
||||
" Sudo write (écrire un fichier en sudo si ouvert en user)
|
||||
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
|
||||
|
||||
" Active les raccourcis clavier pour fzf
|
||||
nnoremap <C-p> :FZF<CR>
|
||||
nnoremap <S-f> :Rg<CR>
|
||||
|
|
Loading…
Reference in a new issue