From 1026be604aa7f663b85b01ee7a260d8e8d34f700 Mon Sep 17 00:00:00 2001 From: cyrill Date: Mon, 7 Oct 2013 11:40:31 +0900 Subject: [PATCH] Fix loaded check position --- plugin/qbuf.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/qbuf.vim b/plugin/qbuf.vim index db5678f..8767ad7 100644 --- a/plugin/qbuf.vim +++ b/plugin/qbuf.vim @@ -2,17 +2,17 @@ if v:version < 700 finish endif +if exists("g:qb_loaded") && g:qb_loaded + finish +endif +let g:qb_loaded = 1 + if !exists("g:qb_hotkey") || g:qb_hotkey == "" let g:qb_hotkey = "" endif exe "nnoremap " g:qb_hotkey " :cal init(1):cal SBRun()" exe "cnoremap " g:qb_hotkey "" -if exists("g:qb_loaded") && g:qb_loaded - finish -endif -let g:qb_loaded = 1 - let s:action2cmd = {"z": 'call switchbuf(#,"")', "!z": 'call switchbuf(#,"!")', \"u": "hid b #|let s:cursel = (s:cursel+1) % s:blen", \"s": "sb #",