From dceac6c2bc7dbf3fea172c4f8c29159b117fe4dd Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 14 Jul 2018 00:26:25 +1200 Subject: Use .= for b:undo_ftplugin appending --- after/ftplugin/diff/prune.vim | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/after/ftplugin/diff/prune.vim b/after/ftplugin/diff/prune.vim index 185d04f..53e05cb 100644 --- a/after/ftplugin/diff/prune.vim +++ b/after/ftplugin/diff/prune.vim @@ -17,19 +17,16 @@ endif " Flag as loaded let b:did_ftplugin_diff_prune = 1 -let b:undo_ftplugin = b:undo_ftplugin - \ . '|unlet b:did_ftplugin_diff_prune' +let b:undo_ftplugin .= '|unlet b:did_ftplugin_diff_prune' " Define normal mode mapping target nnoremap \ (DiffPrune) \ :set operatorfunc=diff#prune#Pruneg@ -let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap (DiffPrune)' +let b:undo_ftplugin .= '|nunmap (DiffPrune)' " Define visual mode mapping target vnoremap \ (DiffPrune) \ :call diff#prune#Prune(visualmode()) -let b:undo_ftplugin = b:undo_ftplugin - \ . '|vunmap (DiffPrune)' +let b:undo_ftplugin .= '|vunmap (DiffPrune)' -- cgit v1.2.3