diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-16 18:08:28 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-16 18:08:28 +0200 |
commit | ee13fd88724422f06fd5da0ca940e6ed28e67e17 (patch) | |
tree | e551c7bf76f101afd24c5900862fb99e6354b9ac | |
parent | dddb32e2c5d355342b4a2d7b112f13f659bac7e5 (diff) |
checkpoint
-rw-r--r-- | config/essentials/shell/aliases.sh | 2 | ||||
-rw-r--r-- | config/essentials/shell/functions.sh | 1 | ||||
-rw-r--r-- | 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" |