From ee13fd88724422f06fd5da0ca940e6ed28e67e17 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 16 Sep 2024 18:08:28 +0200 Subject: checkpoint --- config/essentials/shell/aliases.sh | 2 +- config/essentials/shell/functions.sh | 1 + config/home/.zshenv | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh index 63a6f12..fab3a06 100644 --- a/config/essentials/shell/aliases.sh +++ b/config/essentials/shell/aliases.sh @@ -2,7 +2,7 @@ # s/alias \([^-]\)/alias -g \1 # The most important one -alias vi='vis' +alias vi='nvim' which z >/dev/null 2>&1 && alias cd='z' diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index fd2226d..d798a3e 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -348,3 +348,4 @@ ffconcat () { ffmpeg -y -f concat -safe 0 -i $tmp -c copy "$1" rm $tmp } +nvim_bindings() { "$(tmp="$(mktemp)"; nvim +":set nomore | :redir! > $tmp | :map | :redir END | :q" ; fzf < "$tmp"; rm "$tmp")"; } diff --git a/config/home/.zshenv b/config/home/.zshenv index 3f6f4dc..2b4e8ea 100644 --- a/config/home/.zshenv +++ b/config/home/.zshenv @@ -1,6 +1,6 @@ #!/bin/zsh -export EDITOR="vis" -export VISUAL="vis" +export EDITOR="nvim" +export VISUAL="nvim" export BROWSER="zen-browser" export VIEWER="zathura" -- cgit v1.2.3