From bccda57c46daa5ae50ffd2b9d8edc8fe09476666 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 27 Oct 2019 18:35:50 +0100 Subject: [PATCH] [ADD][SHELL] Vim as an Info reader function The node needs to have the spaces in its title escaped to work correctly with the Info command. --- shell/.functions | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shell/.functions b/shell/.functions index 85a4036..68df25d 100644 --- a/shell/.functions +++ b/shell/.functions @@ -59,3 +59,12 @@ function mcd() { function meteo() { curl "http://wttr.in/$1" # Bonus: try to see the weather on 'moon' } + +# Use Vim as an Info reader with a plug-in +function vinfo() { + page="$1" + shift + node="${*// /\ }" + echo vim "+Info $page $node" "+only" + vim "+Info $page $node" "+only" +}