From c551e7220a95d8872087c6013f1f8fcb1f5912ac Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 5 May 2026 14:32:46 +0200 Subject: [PATCH] CMD: read info with vim --- command.rec | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/command.rec b/command.rec index e045703..7aa365f 100644 --- a/command.rec +++ b/command.rec @@ -111,6 +111,18 @@ bin: vim bin: scp tag: network +aim: Read info files with vim +cmd: info () ++ { ++ [ -n "$1" ] && file="${1}" || file="$(ls /usr/share/info/ | sed 's/\.info.gz$//' | fzf )"; ++ file="$(ls /usr/share/info/"$file"* | fzf -1 )" ++ vim "$file" ++ } +shell: sh +bin: vim +bin: info +tag: documentation + aim: Find and replace across all files open in vim cmd: :bufdo! %s/${pattern}/${replacement}/g shell: sh