Skip to content

Commit

Permalink
fix(basic.vim): change command W to command! W (#412)
Browse files Browse the repository at this point in the history
`source $MYVIMRC` will fail since command `W` exists.
Add `!` so the command would be redefined
  • Loading branch information
William17 authored and amix committed Nov 16, 2019
1 parent b7f5078 commit e1a383d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrcs/basic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ nmap <leader>w :w!<cr>
" :W sudo saves the file
" (useful for handling the permission-denied error)
command W w !sudo tee % > /dev/null
command! W w !sudo tee % > /dev/null


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Expand Down

0 comments on commit e1a383d

Please sign in to comment.