characters pililng up

Multibyte characters were piling up to each other in my vim on iTerm2 like above.

Here’s how to fix this.

vim setting

Add the following line to .vimrc

~/.vimrc

1
set ambiwidth=double

It’s telling vim to double the width of characters having Ambiguous Character Width.

iTerm2 setting

Tick the checkbox and tell iTerm2 to do the same.

iTerm2

That’s it, fixed!

fixed