From 279aa756157ab818df67e854e953f6e05809b4a3 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 8 Mar 2018 02:53:14 -0500 Subject: prevent plugin from being loaded twice --- plugin/history-sync.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin') 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 -- cgit v1.2.3-54-g00ecf