Vim + tmux + WSL shows squares and strange characters when navigating doc

人走茶凉 提交于 2019-12-11 15:14:30

问题


I am able to use vim within Windows Ubuntu subsystem without issues.

Then when running Vim within tmux, and typing text most of the characters come up as weird squares with a quotation mark inside instead of the actual letter.[This is a screen shot of the vim text][1]

[I have a similar behaviour][2] within the console when highlighting text within tmux (Ctrl+b+[).


回答1:


The issue was related with setting the TERM within my bashrc like the following: export TERM=screen-256color-bce

After commenting out that line, my Term was set to screen-256color and it just worked fine.

Not sure why that was causing it



来源:https://stackoverflow.com/questions/57063465/vim-tmux-wsl-shows-squares-and-strange-characters-when-navigating-doc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!