Fix autocomplete for neovim

This commit is contained in:
Talia 2021-09-25 10:50:27 +02:00
parent 7245177157
commit 617e1f46ca
1 changed files with 2 additions and 2 deletions

View File

@ -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