shells: remove vim mode
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,6 +1,2 @@
|
|||||||
__pycache__/
|
|
||||||
__init__.py
|
|
||||||
/fonts/.uuid
|
|
||||||
plugin/
|
|
||||||
files/lazygit/.config/lazygit/state.yml
|
|
||||||
runtime/
|
runtime/
|
||||||
|
files/helix/.config/helix/runtime
|
||||||
|
|||||||
@@ -37,10 +37,9 @@ __prompt_command() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# ============================== vi-Mode
|
# ============================== Jump Words
|
||||||
set -o vi
|
bind '"\en": forward-word'
|
||||||
|
bind '"\ep": backward-word'
|
||||||
bind -x '"\C-l": clear'
|
|
||||||
|
|
||||||
# ============================== Source other definitions
|
# ============================== Source other definitions
|
||||||
[ -f ~/.shellrc.alias ] && source ~/.shellrc.alias
|
[ -f ~/.shellrc.alias ] && source ~/.shellrc.alias
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ alias mv='mv -i'
|
|||||||
alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE`
|
alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE`
|
||||||
alias rm='rm -i'
|
alias rm='rm -i'
|
||||||
alias t='tmux a || tmux -u'
|
alias t='tmux a || tmux -u'
|
||||||
|
alias tw='typst watch'
|
||||||
|
|
||||||
# commands with pre-selected flags
|
# commands with pre-selected flags
|
||||||
alias mktex="latexmk -xelatex -shell-escape"
|
alias mktex="latexmk -xelatex -shell-escape"
|
||||||
|
|||||||
@@ -46,29 +46,9 @@ setopt share_history # share command history data inside tmux
|
|||||||
export HISTFILE="$HOME/.zsh_history"
|
export HISTFILE="$HOME/.zsh_history"
|
||||||
export SAVEHIST=5000
|
export SAVEHIST=5000
|
||||||
|
|
||||||
# ============================== vi-Mode
|
# ============================== Jump Words
|
||||||
bindkey -v
|
bindkey '^[n' forward-word
|
||||||
export KEYTIMEOUT=1
|
bindkey '^[p' backward-word
|
||||||
|
|
||||||
# Updates editor information when the keymap changes.
|
|
||||||
function zle-keymap-select() {
|
|
||||||
zle reset-prompt
|
|
||||||
zle -R
|
|
||||||
}
|
|
||||||
|
|
||||||
zle -N zle-keymap-select
|
|
||||||
|
|
||||||
function vi_mode_prompt_info() {
|
|
||||||
MODE_INDICATOR="%{$fg[green]%}<<<%{$reset_color%}"
|
|
||||||
echo "${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Show mode indication on right side
|
|
||||||
RPS1='$(vi_mode_prompt_info)'
|
|
||||||
RPS2=$RPS1
|
|
||||||
|
|
||||||
# Enable backspace to delete in vi-mode
|
|
||||||
bindkey -v '^?' backward-delete-char
|
|
||||||
|
|
||||||
# ============================== Fancy Hacks
|
# ============================== Fancy Hacks
|
||||||
# Always use C-z for bg and fg
|
# Always use C-z for bg and fg
|
||||||
|
|||||||
Reference in New Issue
Block a user