Mercurial > vim
comparison runtime/macros/less.sh @ 1619:b9740fb41986
updated for version 7.2a
author | vimboss |
---|---|
date | Tue, 24 Jun 2008 20:39:31 +0000 |
parents | 3fc0f57ecb91 |
children | 1b584a6f446c |
comparison
equal
deleted
inserted
replaced
1618:46bbe11644e0 | 1619:b9740fb41986 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # Shell script to start Vim with less.vim. | 2 # Shell script to start Vim with less.vim. |
3 # Read stdin if no arguments were given. | 3 # Read stdin if no arguments were given. |
4 | 4 |
5 if test $# = 0; then | 5 if test -t 1; then |
6 vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' - | 6 if test $# = 0; then |
7 vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' - | |
8 else | |
9 vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@" | |
10 fi | |
7 else | 11 else |
8 vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@" | 12 # Output is not a terminal, cat arguments or stdin |
13 if test $# = 0; then | |
14 cat | |
15 else | |
16 cat "$@" | |
17 fi | |
9 fi | 18 fi |