Skip to content

[feature] Add support for viopp's cursor #41

Open
@Freed-Wu

Description

@Freed-Wu
            case $keymap in
                DEFAULT) set-terminal-cursor-style ;;
                replace) set-terminal-cursor-style ${=MODE_CURSOR_REPLACE-$=MODE_CURSOR_VIINS} ;;
                vicmd)   set-terminal-cursor-style ${=MODE_CURSOR_VICMD} ;;
                isearch) set-terminal-cursor-style ${=MODE_CURSOR_SEARCH-$=MODE_CURSOR_VIINS} ;;
                visual)  set-terminal-cursor-style ${=MODE_CURSOR_VISUAL-$=MODE_CURSOR_VIINS} ;;
                vline)   set-terminal-cursor-style ${=MODE_CURSOR_VLINE-${=MODE_CURSOR_VISUAL-$=MODE_CURSOR_VIINS}} ;;

                main|viins|*)
                         set-terminal-cursor-style ${=MODE_CURSOR_VIINS} ;;
            esac

there doesn't exist viopp. when user press 'd', 'c', 'y' in vicmd keymap, the cursor shape can not change. why don't add it?

Application

when i press 'S', 'ysiw', etc in visual, vicmd keymap, the selected region will disapper:

in visual keymap
image
after press 'S'
image
after press "("
image
the selected region disappear make me confused ( i am afraid i press 'd' to delete the word not 'S' ), so if i can change the sursor shape to '_' to indicate me i have pressed 'S' will be better. that is why i open this issue.

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions