WindTerm icon indicating copy to clipboard operation
WindTerm copied to clipboard

version2.2.2: Some issues with vim

Open asflower opened this issue 4 years ago • 6 comments

display garbled characters when press arrow keys in vim

vim_display_error

asflower avatar Dec 01 '21 03:12 asflower

another vim display issue, colorcolumn line isn't aligned if there exists Chinese characters

vim_display_issue2

asflower avatar Dec 01 '21 06:12 asflower

Sorry, I cannot reproduce the first question. Can you tell me the version of your system and the version of vi? Thank you.

For the second question, please try to change to a monospaced Chinese font. You can read the comments on issue #231 to learn more.

kingToolbox avatar Dec 01 '21 07:12 kingToolbox

Sorry, I cannot reproduce the first question. Can you tell me the version of your system and the version of vi? Thank you.

For the second question, please try to change to a monospaced Chinese font. You can read the comments on issue #231 to learn more.

Sorry for the later reply. The link posted solved my secend question. For the first question, the system is customized linux, with vim version 7.4

asflower avatar Dec 01 '21 08:12 asflower

I am glad that your second question has been resolved.

The garbled text looks like the control sequence ESC[ ? Ⓝ ; Ⓝ ; Ⓝ c, which is used to set Linux caret style. But I'm not very sure, because only linuxvc will use such a control sequence and I can't reproduce it. Well, I will support ESC[ ? Ⓝ ; Ⓝ ; Ⓝ c first, and then we will see if the problem has been solved. I will release it in the WindTerm_2.3.0_Prerelease_1 or WindTerm_2.3.0_Prerelease_2 version. Please stay tuned, thank you.

kingToolbox avatar Dec 01 '21 14:12 kingToolbox

my windterm version is 2.4.1 , custom linux base on centos7, vim have some problems, like this:

image

[?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c [?0c[?1c

y-d-y avatar Aug 05 '22 08:08 y-d-y

@asflower 我也遇到第一个问题了,这个问题你是怎么解决的呢?

gaozhecn avatar Sep 02 '22 07:09 gaozhecn

原因是 ~/.bash_profile 文件多了一些内容

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH
export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]'

是多了最后一行导致了每个命令结束都会打印额外的信息。

修改 ~/.bash_profile 文件为

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

https://github.com/kingToolbox/WindTerm/issues/1018

leehow1988 avatar May 31 '23 02:05 leehow1988