资源介绍
维尔
使用Vim脚本编辑文本。
$ cat nums
5
2
4
$ cat nums | vil %sort
2
4
5
$ vil --help 2>&1 | vil -ne'%s/^ *//|g/^-/+1p'
suppress automatic printing of buffer
add the script to the commands to be executed
add the contents of script-file to the commands to be executed
display this help and exit
output version information and exit
用法
$ vil [OPTION]... {script-only-if-no-other-script} [input-file]...
Options: