[profiles/desktop] change cursor to block in vi command mode

This commit is contained in:
2026-02-17 07:25:39 +01:00
parent 495cc917a1
commit 485cde3e0d
5 changed files with 5 additions and 5 deletions

View File

@@ -17,4 +17,4 @@ $if mode=vi
"\C-l": clear-screen
$endif
set vi-ins-mode-string "\1\e[6 q\2(ins) "
set vi-cmd-mode-string "\1\e[4 q\2(cmd) "
set vi-cmd-mode-string "\1\e[2 q\2(cmd) "

View File

@@ -15,7 +15,7 @@ bindkey '^U' backward-kill-line
zle-keymap-select() {
if [[ ${KEYMAP} == vicmd ]] ||
[[ $1 == block ]]; then
echo -ne '\e[4 q'
echo -ne '\e[2 q'
psvar[1]="(cmd) "
elif [[ ${KEYMAP} == main ]] ||
[[ ${KEYMAP} == viins ]] ||

View File

@@ -2,7 +2,7 @@
TERM = 'xterm-256color'
[cursor]
style = 'Underline'
style = 'Block'
[[keyboard.bindings]]
key = 'V'

View File

@@ -7,7 +7,7 @@ line-height=17
letter-spacing=-1
[cursor]
style=underline
style=block
[key-bindings]
clipboard-paste=Control+Alt+v XF86Paste

View File

@@ -98,4 +98,4 @@ vim.g.html_indent_style1 = 'auto'
-- set cursor shape to underline in the normal and command mode,
-- in the insert mode change shape to vertical bar, and disable
-- blinking in all modes
vim.opt.guicursor:append({ 'n-c:hor20', 'i:ver20', 'a:blinkon0' })
-- vim.opt.guicursor:append({ 'n-c:hor20', 'i:ver20', 'a:blinkon0' })