dotwryn/vim/utility.vim

6 lines
115 B
VimL

function Sudowrite()
execute 'w !sudo tee "%"'
endfunction
nnoremap <Leader><Leader>w :call Sudowrite()<CR><CR>L