[NVIM] Use w!! add . to save with sudo
This commit is contained in:
1 parent
293b1cd4cc
commit
c0837f157d
1 file changed
+1
@@ -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