Fix autocomplete for neovim
This commit is contained in:
parent
7245177157
commit
617e1f46ca
1 changed files with 2 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
||||||
function s:autocomplete(enabled)
|
function s:autocomplete(enabled)
|
||||||
if a:enabled
|
if a:enabled
|
||||||
for letter in ("abcdefghijklmnopqrstuvwxyz"->split(".\\zs"))
|
for letter in (split("abcdefghijklmnopqrstuvwxyz", ".\\zs"))
|
||||||
exec "inoremap ".letter." ".letter.""
|
exec "inoremap ".letter." ".letter.""
|
||||||
endfor
|
endfor
|
||||||
let g:autcomplete=1
|
let g:autcomplete=1
|
||||||
else
|
else
|
||||||
for letter in ("abcdefghijklmnopqrstuvwxyz"->split(".\\zs"))
|
for letter in (split("abcdefghijklmnopqrstuvwxyz", ".\\zs"))
|
||||||
exec "iunmap ".letter
|
exec "iunmap ".letter
|
||||||
endfor
|
endfor
|
||||||
unlet g:autocomplete
|
unlet g:autocomplete
|
||||||
|
|
Loading…
Reference in a new issue