Thanks for the suggestions but I am still stuck. I have in the code description = as_unicode(description) key = as_unicode(snip.trigger) _vim.command(as_unicode("let g:current_ulti_dict['{key}'] = '{val}'".format(key=key, val=description))) but when trying on the snippets I mentioned before I get the error: _vim.command(as_unicode("let g:current_ulti_dict['{key}'] = '{val}'".format(key=key, val=description))) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe2' in position 4: ordinal not in range(128) I may try to ask this on the vim list since someone there might have an idea on how to solve this (if it is possible to solve this at all). Jorge On Tue, May 28, 2013 at 12:49 AM, SirVer