Skip to content

Commit

Permalink
Define commands with <bang>
Browse files Browse the repository at this point in the history
As it allows to redefine already existing command. It could be useful
in case of lazy loading the plugin with a command of the same name.
  • Loading branch information
sudo-nice committed Aug 1, 2018
1 parent f1f3859 commit 3bf1dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/diffconflicts.vim
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ function! s:checkThenDiff()
endif
endfunction

command DiffConflicts call s:checkThenDiff()
command DiffConflictsShowHistory call s:showHistory()
command! DiffConflicts call s:checkThenDiff()
command! DiffConflictsShowHistory call s:showHistory()

let &cpo = s:save_cpo
unlet s:save_cpo

0 comments on commit 3bf1dda

Please sign in to comment.