aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-10-18 00:11:15 -0400
committerJesse Luehrs <doy@tozt.net>2017-10-18 00:11:15 -0400
commitede742dca0477d08edaaa14cc178bd80bd181126 (patch)
treeb975bab3088c7a160a557bb3c36fefb368222b2d
parentd7057e8c68f4e0cc400fa193bf915fd4a73b1bc6 (diff)
downloadvim-textobj-ede742dca0477d08edaaa14cc178bd80bd181126.tar.gz
vim-textobj-ede742dca0477d08edaaa14cc178bd80bd181126.zip
don't load the plugin more than once
-rw-r--r--plugin/textobj.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/textobj.vim b/plugin/textobj.vim
index 01345bc..bb620fe 100644
--- a/plugin/textobj.vim
+++ b/plugin/textobj.vim
@@ -1,3 +1,7 @@
+if exists('g:loaded_textobj')
+ finish
+endif
+let g:loaded_textobj = 1
" Text object creation {{{
" XXX: use virtualedit here, it should greatly simplify things
let s:text_object_number = 0