From 2c6762c2ebff76aa958bb7dc36ce3e727c953a7b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Thu, 20 Jan 2022 00:07:47 +0100 Subject: [PATCH] zsh: Fixing home and end keys --- packages.txt | 3 ++- zsh/config/zsh/zshrc | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages.txt b/packages.txt index 4e3a9ec..175eb14 100644 --- a/packages.txt +++ b/packages.txt @@ -50,4 +50,5 @@ unzip ripgrep fd mpv - +neovim +acpi diff --git a/zsh/config/zsh/zshrc b/zsh/config/zsh/zshrc index 1ba4886..22f4e86 100644 --- a/zsh/config/zsh/zshrc +++ b/zsh/config/zsh/zshrc @@ -35,6 +35,12 @@ function zvm_after_init() { bindkey '^[[A' up-line-or-search bindkey '^[[B' down-line-or-search + bindkey -M viins "^[[H" beginning-of-line + bindkey -M viins "^[[F" end-of-line + bindkey -M vicmd "^[[H" beginning-of-line + bindkey -M vicmd "^[[F" end-of-line + bindkey -M visual "^[[H" beginning-of-line + bindkey -M visual "^[[F" end-of-line } ZSH=/usr/share/oh-my-zsh/