Skip to content

Commit 3601670

Browse files
committed
Some variables need default value
1 parent 59cc3ec commit 3601670

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

plugin/vimsnippets.vim

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ if exists("b:done_vimsnippets")
33
endif
44
let b:done_vimsnippets = 1
55

6+
" Some variables need default value
7+
if !exists("g:snips_author")
8+
let g:snips_author = "yourname"
9+
endif
10+
11+
if !exists("g:snips_email")
12+
let g:snips_email = "[email protected]"
13+
endif
14+
15+
if !exists("g:snips_github")
16+
let g:snips_github = "https://github.com/yourname"
17+
endif
18+
619
" Expanding the path is not needed on Vim 7.4
720
if &cp || version >= 704
821
finish

0 commit comments

Comments
 (0)