home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Welt 2006 March
/
PCWELT_3_2006.ISO
/
base
/
05_common.mo
/
usr
/
share
/
elvis-2.2_0
/
scripts
/
inregion.ex
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2004-02-22
|
271 b
|
13 lines
"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
}