From daa9e1c46621d863c214782f173c95909ed38401 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 17 Dec 2022 16:56:24 +0100 Subject: [PATCH] abbr.rst: fix --set-cursor example Since the --set-cursor argument is now optional, we must not separate it from the option. --- doc_src/cmds/abbr.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/cmds/abbr.rst b/doc_src/cmds/abbr.rst index 28eea2130..4c968e013 100644 --- a/doc_src/cmds/abbr.rst +++ b/doc_src/cmds/abbr.rst @@ -98,7 +98,7 @@ This first creates a function ``vim_edit`` which prepends ``vim`` before its arg :: - abbr 4DIRS --set-cursor ! "$(string join \n -- 'for dir in */' 'cd $dir' '!' 'cd ..' 'end')" + abbr 4DIRS --set-cursor=! "$(string join \n -- 'for dir in */' 'cd $dir' '!' 'cd ..' 'end')" This creates an abbreviation "4DIRS" which expands to a multi-line loop "template." The template enters each directory and then leaves it. The cursor is positioned ready to enter the command to run in each directory, at the location of the ``!``, which is itself erased.