diff options
-rw-r--r-- | plugin/joiner.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/joiner.vim b/plugin/joiner.vim index cef2fda..26cb5a3 100644 --- a/plugin/joiner.vim +++ b/plugin/joiner.vim @@ -31,6 +31,7 @@ vnoremap <silent> <Plug>(joiner)s :<c-u>let g:JoinerJoinText=function('joi vnoremap <silent> <Plug>(joiner)S :<c-u>let g:JoinerJoinText=function('joiner#join_with_string_literal')<cr>gv:<c-u>call joiner#do(visualmode(), 1)<cr> vnoremap <silent> <Plug>(joiner)<space> :<c-u>let g:JoinerJoinText=function('joiner#default_join')<cr>gv:<c-u>call joiner#do(visualmode(), 1)<cr> -if g:joiner_include_bindings exec printf("vnoremap <silent> %s <Plug>(joiner)", g:joiner_leader) +if g:joiner_include_bindings + exec printf("vnoremap <silent> %s <Plug>(joiner)", g:joiner_leader) exec printf("noremap <silent> %s <Plug>(joiner)", g:joiner_leader) endif |