diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index 42e90fe0..4b3173ca 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -50,7 +50,7 @@ nmap w :w! " :W sudo saves the file " (useful for handling the permission-denied error) -command! W w !sudo tee % > /dev/null +command! W execute 'w !sudo tee % > /dev/null' edit! """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""