.vimrc: add `:w!!` for sudo-write
This commit is contained in:
parent
e87b59aa6b
commit
9608618a3c
3
.vimrc
3
.vimrc
|
|
@ -75,6 +75,9 @@ command! -nargs=0 -bar Update if &modified
|
|||
nnoremap <silent> <C-s> :<C-u>Update<CR>
|
||||
inoremap <C-s> <C-o>:Update<CR>
|
||||
|
||||
" sudo-write with :w!!
|
||||
cnoremap w!! w !sudo tee >/dev/null %
|
||||
|
||||
" Edit (\ev) and reload (\rv) .vimrc (reload .gvimrc if running gvim)
|
||||
nnoremap <leader>ev :split $MYVIMRC<CR>
|
||||
if has('gui_running')
|
||||
|
|
|
|||
Loading…
Reference in New Issue