Skip to content

Commit 175f149

Browse files
author
Jorengarenar
committed
No global variable 'k'
1 parent 2ebb8e1 commit 175f149

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ftplugin/sql.vim

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ function! s:upper(k)
160160
endif
161161
endfunction
162162

163-
for k in s:keywords
164-
exec "iabbrev <expr> <buffer> " . k . " <SID>upper('" . k . "')"
165-
endfor
163+
function! s:init()
164+
for k in s:keywords
165+
exec "iabbrev <expr> <buffer> " . k . " <SID>upper('" . k . "')"
166+
endfor
167+
endfunction
168+
169+
call <SID>init()

0 commit comments

Comments
 (0)