Skip to content

Commit e1a383d

Browse files
William17amix
authored andcommitted
fix(basic.vim): change command W to command! W (amix#412)
`source $MYVIMRC` will fail since command `W` exists. Add `!` so the command would be redefined
1 parent b7f5078 commit e1a383d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vimrcs/basic.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ nmap <leader>w :w!<cr>
5050
5151
" :W sudo saves the file
5252
" (useful for handling the permission-denied error)
53-
command W w !sudo tee % > /dev/null
53+
command! W w !sudo tee % > /dev/null
5454

5555

5656
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

0 commit comments

Comments
 (0)