diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index 91d3e71a..a363da92 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! """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""