~moved menu vim binds to correct section
This commit is contained in:
12
zshrc
12
zshrc
@@ -50,6 +50,12 @@ zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,'
|
|||||||
|
|
||||||
## Vim binds
|
## Vim binds
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
# Menu
|
||||||
|
bindkey -M menuselect 'h' vi-backward-char
|
||||||
|
bindkey -M menuselect 'j' vi-up-line-or-history
|
||||||
|
bindkey -M menuselect 'k' vi-down-line-or-history
|
||||||
|
bindkey -M menuselect 'l' vi-forward-char
|
||||||
|
|
||||||
# Cursor
|
# Cursor
|
||||||
function zle-keymap-select {
|
function zle-keymap-select {
|
||||||
if [[ ${KEYMAP} == vicmd ]] ||
|
if [[ ${KEYMAP} == vicmd ]] ||
|
||||||
@@ -72,12 +78,6 @@ zle -N zle-line-init
|
|||||||
echo -ne '\e[5 q' # Use beam shape cursor on startup.
|
echo -ne '\e[5 q' # Use beam shape cursor on startup.
|
||||||
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
|
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
|
||||||
|
|
||||||
# Menu
|
|
||||||
bindkey -M menuselect 'h' vi-backward-char
|
|
||||||
bindkey -M menuselect 'j' vi-up-line-or-history
|
|
||||||
bindkey -M menuselect 'k' vi-down-line-or-history
|
|
||||||
bindkey -M menuselect 'l' vi-forward-char
|
|
||||||
|
|
||||||
## Programming
|
## Programming
|
||||||
editor() {
|
editor() {
|
||||||
nohup emacs $@ > /dev/null &
|
nohup emacs $@ > /dev/null &
|
||||||
|
|||||||
Reference in New Issue
Block a user