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)
|
||||
if a:enabled
|
||||
for letter in ("abcdefghijklmnopqrstuvwxyz"->split(".\\zs"))
|
||||
for letter in (split("abcdefghijklmnopqrstuvwxyz", ".\\zs"))
|
||||
exec "inoremap ".letter." ".letter.""
|
||||
endfor
|
||||
let g:autcomplete=1
|
||||
else
|
||||
for letter in ("abcdefghijklmnopqrstuvwxyz"->split(".\\zs"))
|
||||
for letter in (split("abcdefghijklmnopqrstuvwxyz", ".\\zs"))
|
||||
exec "iunmap ".letter
|
||||
endfor
|
||||
unlet g:autocomplete
|
||||
|
|
Loading…
Reference in a new issue