Skip to content

Commit

Permalink
TeraTerm でも Home/End が効くようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
ndxbn committed Nov 22, 2023
1 parent 12a15d1 commit 12d73a2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions zsh/.zsh_plugin.d/key-binds.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ bindkey -e

# [Ctrl-u]
bindkey "^U" backward-kill-line
## ${terminfo[khome]} is "^[0H", and it makes bug
# [Home]
## ${terminfo[khome]} is "^[0H", and it makes bug
## WSL
bindkey "^[[H" beginning-of-line
## ${terminfo[kend]} is "^[0F", and it makes bug
## Tera Term
bindkey "^[[1~" beginning-of-line
# [End]
bindkey "^[[F" end-of-line
## ${terminfo[kend]} is "^[0F", and it makes bug
## WSL
bindkey "^[[F" end-of-line
## Tera Term
bindkey "^[[4~" end-of-line

# [Shift-Tab]
if [[ -n "${terminfo[kcbt]}" ]]; then
Expand Down Expand Up @@ -37,4 +43,4 @@ bindkey -M vicmd '^[[1;5C' forward-word
# [Ctrl-LeftArrow]
bindkey -M emacs '^[[1;5D' backward-word
bindkey -M viins '^[[1;5D' backward-word
bindkey -M vicmd '^[[1;5D' backward-word
bindkey -M vicmd '^[[1;5D' backward-word

0 comments on commit 12d73a2

Please sign in to comment.