diff --git a/nvim/.config/nvim/keymappings.vim b/nvim/.config/nvim/keymappings.vim index 0b67198..24c8b0c 100644 --- a/nvim/.config/nvim/keymappings.vim +++ b/nvim/.config/nvim/keymappings.vim @@ -1,5 +1,5 @@ " Allow saving of files as sudo when I forgot to start vim using sudo -cmap w!! w !sudo tee > /dev/null % +cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! " Remap escape keys to something usable on home row inoremap jk cnoremap jk