Skip to content

Commit 907e524

Browse files
committed
Fix some typo, script loaded check
1 parent 6f8ab50 commit 907e524

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

autoload/vimcaps.vim

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@
44
" as well as a "complete control" over the keyboard event.
55
" (complete control is now windows only.)
66
" Author: LiTuX <suxpert AT gmail DOT com>
7-
" Last Change: 2014-02-22 15:30:40
7+
" Last Change: 2014-02-22 16:07:08
88
" Version: 0.1.1
99
"===========================================================================
1010

11-
if exists("g:vimcaps_loaded")
12-
finish
13-
endif
14-
let g:vimcaps_loaded = 1
15-
1611
let s:vimcaps_undertty = 0
1712

1813
let s:vimcaps_path = expand("<sfile>:p:h")

plugin/vimcaps.vim

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
" as well as a "complete control" over the keyboard event.
55
" (complete control is now windows only.)
66
" Author: LiTuX <suxpert AT gmail DOT com>
7-
" Last Change: 2014-02-22 15:15:47
7+
" Last Change: 2014-02-22 16:07:02
88
" Version: 0.1.1
99
"
1010
" Install: unpack all into your plugin folder, that's all.
@@ -57,6 +57,11 @@
5757
" 0.0.1: initial upload, windows only, ready to use.
5858
"===========================================================================
5959

60+
if exists("g:vimcaps_loaded")
61+
finish
62+
endif
63+
let g:vimcaps_loaded = 1
64+
6065
if !exists("g:vimcaps_status_style")
6166
let g:vimcaps_status_style = "upper"
6267
endif
@@ -67,7 +72,7 @@ endif
6772
" enable by default, if you don't want it be enabled, add
6873
" :let g:vimcaps_disable_autocmd = 1
6974
" to your vimrc, or uninstall this plugin. :)
70-
if !exists('g:vimcaps_disable_autocmd') || g:vimcaps_disable_autocmd == 1
75+
if !exists('g:vimcaps_disable_autocmd') || g:vimcaps_disable_autocmd == 0
7176
augroup vimcaps
7277
au!
7378
autocmd BufWinEnter,InsertLeave,FocusGained * call vimcaps#capsoff()

0 commit comments

Comments
 (0)