equal
deleted
inserted
replaced
270 if [[ $TERM == screen* || $TERM == tmux* ]]; then |
270 if [[ $TERM == screen* || $TERM == tmux* ]]; then |
271 bindkey -M viins '^[[1~' beginning-of-line # Home |
271 bindkey -M viins '^[[1~' beginning-of-line # Home |
272 bindkey -M vicmd '^[[1~' beginning-of-line # Home |
272 bindkey -M vicmd '^[[1~' beginning-of-line # Home |
273 bindkey -M viins '^[[4~' end-of-line # End |
273 bindkey -M viins '^[[4~' end-of-line # End |
274 bindkey -M vicmd '^[[4~' end-of-line # End |
274 bindkey -M vicmd '^[[4~' end-of-line # End |
|
275 elif [[ $TERM == st || $TERM == st-* ]]; then |
|
276 bindkey -M viins '^[[H' beginning-of-line |
|
277 bindkey -M vicmd '^[[H' beginning-of-line |
|
278 bindkey -M viins '^[[4~' end-of-line # End with stterm |
|
279 bindkey -M vicmd '^[[4~' end-of-line # End with stterm |
|
280 bindkey -M viins '^[[P' delete-char # Del with stterm |
|
281 bindkey -M vicmd '^[[P' delete-char # Del with stterm |
|
282 bindkey -M viins '^[[4h' vi-replace # Ins with stterm |
|
283 bindkey -M vicmd '^[[4h' vi-insert |
275 fi |
284 fi |
276 |
285 |
277 # Edit the command line using your usual editor. |
286 # Edit the command line using your usual editor. |
278 autoload edit-command-line |
287 autoload edit-command-line |
279 zle -N edit-command-line |
288 zle -N edit-command-line |