2 # Reflows the prose comment on lines FIRST to LAST of FILE. It uses the
3 # Vim from the Nix shell without a user configuration, so the result is
4 # the same on every machine. The filetype plugin of Vim supplies the
9 echo 'usage: bin/reflow FILE FIRST LAST' >&2
17 vim -u NONE -i NONE -N -n -es \
18 -c 'filetype plugin on' \
20 -c 'set textwidth=80 nojoinspaces formatoptions=cq' \
21 -c "${first},${last}s/\\S\\zs \\+/ /ge" \
22 -c "normal! ${first}GV${last}Ggq" \