Skip to content

replace arrow keys #30

@Perugolate

Description

@Perugolate

test:

# Enable vi mode
bindkey -v

# Reduce ESC delay to 0.1 seconds
export KEYTIMEOUT=1

# History search in vi mode
bindkey -M vicmd '/' history-incremental-search-backward
bindkey -M vicmd '?' history-incremental-search-forward
bindkey -M vicmd 'n' vi-repeat-search
bindkey -M vicmd 'N' vi-rev-repeat-search

# History navigation with k/j in normal mode
bindkey -M vicmd 'k' up-line-or-history
bindkey -M vicmd 'j' down-line-or-history

# Word-based history search (similar to arrow key setup)
bindkey '^k' history-search-backward
bindkey '^j' history-search-forward

# Word navigation in insert mode
bindkey '^b' backward-word
bindkey '^w' forward-word

# Beginning/end of line in insert mode
bindkey '^a' beginning-of-line
bindkey '^e' end-of-line

# Clear screen (since ctrl-l might be mapped on your Voyager)
bindkey '^g' clear-screen

# Additional quality of life bindings
bindkey '^p' up-history
bindkey '^n' down-history
bindkey '^h' backward-delete-char
bindkey '^?' backward-delete-char

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