diff options
author | Teddy Wing | 2020-02-05 23:07:55 +0100 |
---|---|---|
committer | Teddy Wing | 2020-02-05 23:07:55 +0100 |
commit | c292377efc09f8ecdfbf55873d72dec1927dac63 (patch) | |
tree | 90e33044456b927cb8173b8aa19041cbb52de36b | |
parent | 682926ad56ff1ce2f6498eed1cefa021dbe04839 (diff) | |
download | vim-searchop-c292377efc09f8ecdfbf55873d72dec1927dac63.tar.bz2 |
plugin/searchop.vim: Add load guard
-rw-r--r-- | plugin/searchop.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/searchop.vim b/plugin/searchop.vim index c82e016..d588456 100644 --- a/plugin/searchop.vim +++ b/plugin/searchop.vim @@ -1,3 +1,9 @@ +if exists('g:loaded_searchop') + finish +endif +let g:loaded_searchop = 1 + + nnoremap <silent> z* :set opfunc=searchop#SearchForward<CR>g@ vnoremap <silent> z* :<C-u>call searchop#SearchForward(visualmode(), 1)<CR> |