skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.65k stars 458 forks source link

Question: what vim setting do I need to show the output correctly inside vim? #179

Open kgfly opened 5 years ago

kgfly commented 5 years ago

This is a not bug report or feature request.

(Not sure if anyone runs leetcode command inside vim or not.)

In my vim, I run "!leetcode test %", here is my observation:

image

I added these options

set encoding=utf-8 set fileencoding=utf-8 set fileencodings=utf-8 set termencoding=utf-8

to .vimrc.

However, still not working. Chars are still not readable.

Thanks.

skygragon commented 5 years ago

@9527KGG Have you tried disable coloring by adding "--no-color" parameter?

kgfly commented 5 years ago

Gave a try. The issue still repro. Thanks.

I think the issue is related with font encoding, not color.