Skip to content

Instantly share code, notes, and snippets.

@psteiner
Last active December 15, 2015 01:49
Show Gist options
  • Save psteiner/5182724 to your computer and use it in GitHub Desktop.
Save psteiner/5182724 to your computer and use it in GitHub Desktop.
UltiSnips error in Cygwin Vim
$ vim
Error detected while processing /home/Philip/.vim/bundle/ultisnips/plugin/UltiSnips.vim:
line 232:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/Philip/.vim/bundle/ultisnips/plugin/UltiSnips/__init__.py", line 13, in <module>
from UltiSnips._diff import diff, guess_edit
File "/home/Philip/.vim/bundle/ultisnips/plugin/UltiSnips/_diff.py", line 7, in <module>
from UltiSnips import _vim
File "/home/Philip/.vim/bundle/ultisnips/plugin/UltiSnips/_vim.py", line 320, in <module>
if not int(eval('has("langmap")')):
File "/home/Philip/.vim/bundle/ultisnips/plugin/UltiSnips/_vim.py", line 107, in eval
rv = vim.eval(as_vimencoding(s))
File "/home/Philip/.vim/bundle/ultisnips/plugin/UltiSnips/compatibility.py", line 85, in as_vimencoding
return _vim_enc(s)
File "/home/Philip/.vim/bundle/ultisnips/plugin/UltiSnips/compatibility.py", line 24, in _vim_enc
return s.encode(vim.eval("&encoding"))
TypeError: encode() argument 1 must be string, not None
line 233:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 234:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 235:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
Press ENTER or type command to continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment