相关疑难解决方法(0)

如何更改 Gnome 终端的插入符号?

您如何将终端中的文本光标/插入符号更改为块、工字梁或下划线。

gnome-terminal

11
推荐指数
3
解决办法
7809
查看次数

如何根据我处于插入模式还是正常模式来更改 vim 中的光标?

我习惯使用 GVim,但我也想使用 vim+tmux。因此我决定切换到vim。但是在 vim 中,光标样式不会根据模式而改变。

我使用 zsh 和 gnome 终端。

我已经尝试过这个答案:如何在 Gnome 终端上的控制台 Vim 中基于正常或插入模式使光标从细线变为块

if has("autocmd")
  au InsertEnter * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
  au InsertLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"
  au VimLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
endif
Run Code Online (Sandbox Code Playgroud)

但它会全局更改光标。

我也试过这个插件,但也没有用。(如何检查插件是否正常工作?)

vim command-line tmux cursor

5
推荐指数
1
解决办法
7463
查看次数

标签 统计

command-line ×1

cursor ×1

gnome-terminal ×1

tmux ×1

vim ×1