Vivek Kumar
Vivek Kumar

Reputation: 5040

CONVERSION ERROR in vim

Adding set listchars=tab:▸\ ,trail:·,extends:#,nbsp:· line is causing "CONVERSION ERROR" while saving the vimrc file. I am using gvim 7.3 under Window 7.

I have added this character using ("▸") using ctrl-vu 25B8.

my vimrc file has also set encoding=utf-8

Is it possible to resolve this error.

Thanks

Upvotes: 26

Views: 14488

Answers (3)

idbrii
idbrii

Reputation: 11916

I solved this error (although not from listchars) by changing the buffer's encoding and then saving:

:set fileencoding=utf-8
:write

Upvotes: 8

Vivek Kumar
Vivek Kumar

Reputation: 5040

Got the answer from the link below, As I need to put a single space after ▸\ charter Vim doesn't support unicode?

Upvotes: 0

Ingo Karkat
Ingo Karkat

Reputation: 172600

Try saving with :w ++enc=utf-8. Also, it's recommended to put scriptencoding utf-8 at the top of your .vimrc.

Upvotes: 58

Related Questions