[profiles/desktop] change cursor to block in vi command mode
This commit is contained in:
@@ -17,4 +17,4 @@ $if mode=vi
|
|||||||
"\C-l": clear-screen
|
"\C-l": clear-screen
|
||||||
$endif
|
$endif
|
||||||
set vi-ins-mode-string "\1\e[6 q\2(ins) "
|
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) "
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ bindkey '^U' backward-kill-line
|
|||||||
zle-keymap-select() {
|
zle-keymap-select() {
|
||||||
if [[ ${KEYMAP} == vicmd ]] ||
|
if [[ ${KEYMAP} == vicmd ]] ||
|
||||||
[[ $1 == block ]]; then
|
[[ $1 == block ]]; then
|
||||||
echo -ne '\e[4 q'
|
echo -ne '\e[2 q'
|
||||||
psvar[1]="(cmd) "
|
psvar[1]="(cmd) "
|
||||||
elif [[ ${KEYMAP} == main ]] ||
|
elif [[ ${KEYMAP} == main ]] ||
|
||||||
[[ ${KEYMAP} == viins ]] ||
|
[[ ${KEYMAP} == viins ]] ||
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
TERM = 'xterm-256color'
|
TERM = 'xterm-256color'
|
||||||
|
|
||||||
[cursor]
|
[cursor]
|
||||||
style = 'Underline'
|
style = 'Block'
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
[[keyboard.bindings]]
|
||||||
key = 'V'
|
key = 'V'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ line-height=17
|
|||||||
letter-spacing=-1
|
letter-spacing=-1
|
||||||
|
|
||||||
[cursor]
|
[cursor]
|
||||||
style=underline
|
style=block
|
||||||
|
|
||||||
[key-bindings]
|
[key-bindings]
|
||||||
clipboard-paste=Control+Alt+v XF86Paste
|
clipboard-paste=Control+Alt+v XF86Paste
|
||||||
|
|||||||
@@ -98,4 +98,4 @@ vim.g.html_indent_style1 = 'auto'
|
|||||||
-- set cursor shape to underline in the normal and command mode,
|
-- set cursor shape to underline in the normal and command mode,
|
||||||
-- in the insert mode change shape to vertical bar, and disable
|
-- in the insert mode change shape to vertical bar, and disable
|
||||||
-- blinking in all modes
|
-- 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' })
|
||||||
|
|||||||
Reference in New Issue
Block a user