[NVIM] Use w!! add . to save with sudo
This commit is contained in:
@@ -108,6 +108,7 @@ let mapleader = "\<Space>" " Make space the leader key
|
||||
nnoremap <Leader>w :w<CR>| " Write file
|
||||
nnoremap <Leader>q :q<CR>| " Close file
|
||||
nnoremap <Leader>s :w !sudo tee %<CR>L<CR>
|
||||
ca w!! w !sudo tee "%"
|
||||
|
||||
nmap <Leader><Leader> V| " Change to visual line mode
|
||||
map q: :q| " No command history
|
||||
|
||||
Reference in New Issue
Block a user