Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 22 lines (17 sloc) 0.455 kb
64a6594 japh woldrich initial
trapd00r authored
1 #!/bin/sh
2 # modded vimpager for nfo files
3 # colorscheme is at http://github.com/trapd00r/neverland-vim-theme
4
5
6 file="$@"
7 if [ -z "$file" ]; then file="-"; fi
8
9 less_vim() {
1389488 japh woldrich vimpagger-nfo: use abs path for vim
trapd00r authored
10 /usr/bin/vim -pR \
64a6594 japh woldrich initial
trapd00r authored
11 -c 'let no_plugin_maps = 1' \
12 -c 'set scrolloff=999' \
13 -c 'runtime! macros/less.vim' \
14 -c 'set foldlevel=999' \
15 -c 'set nonumber' \
16 -c 'set laststatus=2' \
23675bc japh woldrich vimpager-nfo: remove colorscheme req, make sure 'cc is disabled, set ft=...
trapd00r authored
17 -c 'set colorcolumn=0 ft=b cursorline tw=80' \
64a6594 japh woldrich initial
trapd00r authored
18 "$@"
19 }
20
21 less_vim "$file"
Something went wrong with that request. Please try again.