/usr/share/elvis/scripts/inregion.ex is in elvis-common 2.2.0-11.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | "defines a :inregion alias
alias inregion {
" execute a command for each line that happens to be in a given region
if "!1" == ""
then error usage: inregion facename excmdline...
normal mz
!%g/^/ {
if current("region") == "!1"
then !2*
}
normal `z
}
|