[NVIM] Use w!! add . to save with sudo

This commit is contained in:
Fabian Ising
2025-12-27 10:00:21 +01:00
parent 293b1cd4cc
commit c0837f157d

View File

@@ -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