aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-03-08 02:53:14 -0500
committerJesse Luehrs <doy@tozt.net>2018-03-08 02:53:14 -0500
commit279aa756157ab818df67e854e953f6e05809b4a3 (patch)
tree79ad5f6a79b923eb3c13b8411b5cad964cf8f341
parentd50dd19f6f93becacf30419695e21200dc210a34 (diff)
downloadvim-history-sync-master.tar.gz
vim-history-sync-master.zip
prevent plugin from being loaded twiceHEADmaster
-rw-r--r--plugin/history-sync.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/history-sync.vim b/plugin/history-sync.vim
index 3f32333..4a9bf37 100644
--- a/plugin/history-sync.vim
+++ b/plugin/history-sync.vim
@@ -1,3 +1,8 @@
+if exists('g:loaded_history_sync') || &cp
+ finish
+endif
+let g:loaded_history_sync = 1
+
if $SHELL !~# 'zsh' || !exists('g:_zsh_hist_fname')
finish
endif