summaryrefslogtreecommitdiff
path: root/zsh/zscripts/keybindrc.zsh
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-07-31 15:16:04 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2022-07-31 15:16:04 -0500
commita0943a0a387400afc8e49e7a626532e73990d24f (patch)
tree5e14f8a353c9b05a1a97f029c66c9f0e28f352a1 /zsh/zscripts/keybindrc.zsh
parent4af49ed67fbf358674d45fb8af3c4c3efaf90f58 (diff)
downloaddotconfig-a0943a0a387400afc8e49e7a626532e73990d24f.tar.xz
dotconfig-a0943a0a387400afc8e49e7a626532e73990d24f.zip
bunch more stuff
Diffstat (limited to 'zsh/zscripts/keybindrc.zsh')
-rwxr-xr-xzsh/zscripts/keybindrc.zsh25
1 files changed, 6 insertions, 19 deletions
diff --git a/zsh/zscripts/keybindrc.zsh b/zsh/zscripts/keybindrc.zsh
index 67dfcd5..5e6ee83 100755
--- a/zsh/zscripts/keybindrc.zsh
+++ b/zsh/zscripts/keybindrc.zsh
@@ -5,11 +5,12 @@ bindkey -v # Select viins keymap
KEYTIMEOUT=1
# Keybindings
-autoload edit-command-line; zle -N edit-command-line # Edit line in Vim buffer
+autoload edit-command-line; zle -N edit-command-line # Edit line in Vim buffer
bindkey '^E' edit-command-line # Ctrl-e - edit line in Vim buffer
-bindkey '^[[H' beginning-of-line # Home Key
-bindkey '^[[4~' end-of-line # End Key
+
bindkey '^[[P' delete-char # Delete Key
+bindkey '^[[4~' end-of-line # End Key
+bindkey '^[[H' beginning-of-line # Home Key
bindkey '^[[4h' overwrite-mode # Insert Key
bindkey '^D' kill-whole-line # Ctrl-d - delete line
bindkey '^X' clear-screen # Ctrl-x - clear screen
@@ -19,24 +20,10 @@ bindkey '^[[M' delete-word # Ctrl-Delete - delete currect word in front of the
bindkey '\e[A' history-search-backward # Up arrow - seach history backwards
bindkey '\e[B' history-search-forward # Down arrow - seach history forwards
# Ctrl-vi keys emulate arrow keys
-#bindkey '^H' emacs-backward-word # Ctrl-L - go back one word
+#bindkey '^L' emacs-forward-word # Ctrl-H - go forward one word
#bindkey '^J' history-search-forward # Ctrl-J - seach history backwards
#bindkey '^K' history-search-backward # Ctrl-K - seach history forwards
-#bindkey '^L' emacs-forward-word # Ctrl-H - go forward one word
-
-# Basic auto/tab complete
-autoload -U compinit
-zstyle ':completion:*' menu select
-zmodload zsh/complist
-compinit -d "$XDG_CACHE_HOME/zcompdump" # Change where .zcompdump is stored
-_comp_options+=(globdots) # Include hidden files.
-
-# Use ctrl-vi keys in tab complete menu
-bindkey -M menuselect '^h' vi-backward-char
-bindkey -M menuselect '^k' vi-up-line-or-history
-bindkey -M menuselect '^l' vi-forward-char
-bindkey -M menuselect '^j' vi-down-line-or-history
-bindkey -v '^?' backward-delete-char
+#bindkey '^H' emacs-backward-word # Ctrl-L - go back one word
# Ignore ctrl-d to exit shell
setopt IGNORE_EOF