Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

与 Vim 终端相关的一些修复配置 #4

Open
roccomao opened this issue Mar 5, 2023 · 0 comments
Open

与 Vim 终端相关的一些修复配置 #4

roccomao opened this issue Mar 5, 2023 · 0 comments
Labels

Comments

@roccomao
Copy link
Owner

roccomao commented Mar 5, 2023

  1. 终端 Vim 改变光标在不同模式下的样式

    let &t_SI = "\<Esc>[5 q"
    let &t_SR = "\<Esc>[3 q"
    let &t_EI = "\<Esc>[1 q"
    
    "  1 -> blinking block
    "  2 -> solid block
    "  3 -> blinking underscore
    "  4 -> solid underscore
    "  5 -> blinking vertical bar
    "  6 -> solid vertical bar
  2. 出现类似>4;m>4;2m的异常字符

    let &t_TI = ""
    let &t_TE = ""
  3. Vim 支持终端真彩,但可能需要一些额外配置

    let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
    let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
    set termguicolors
@roccomao roccomao added the Vim label Mar 5, 2023
roccomao added a commit that referenced this issue Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant