diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index c038feb..dd68e3a 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -186,6 +186,8 @@ set sessionoptions-=blank set grepprg=rg\ --vimgrep " --------------------------- Key Bindings ----------------------------------- +" Allow saving of files as sudo when I forgot to start vim using sudo +cmap w!! w !sudo tee > /dev/null % " Remap escape keys to something usable on home row inoremap jk cnoremap jk