abbr.rst: fix --set-cursor example

Since the --set-cursor argument is now optional, we must not separate it
from the option.
This commit is contained in:
Johannes Altmanninger 2022-12-17 16:56:24 +01:00
parent 622a0278bc
commit daa9e1c466

View file

@ -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.