From 3bf1ddab1f773e7cb1e44e789cc9ce7158778ee9 Mon Sep 17 00:00:00 2001 From: Sudo Nice Date: Wed, 1 Aug 2018 10:54:12 +0300 Subject: [PATCH] Define commands with 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. --- plugin/diffconflicts.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/diffconflicts.vim b/plugin/diffconflicts.vim index 218855e..280b1e3 100644 --- a/plugin/diffconflicts.vim +++ b/plugin/diffconflicts.vim @@ -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