Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: eac9f6bf79
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (18 sloc) 0.537 kb
#!/bin/sh
# modded vimpager for nfo files
# colorscheme is at http://github.com/trapd00r/neverland-vim-theme
file="$@"
if [ -z "$file" ]; then file="-"; fi
less_vim() {
# the number hack avoids setting nornu which needs >= 7.3
/usr/bin/vim -pR \
-c 'let no_plugin_maps = 1' \
-c 'set scrolloff=999' \
-c 'runtime! macros/less.vim' \
-c 'set foldlevel=999' \
-c 'set number | set nonumber' \
-c 'set laststatus=2' \
-c 'set colorcolumn=0 ft=b cursorline tw=80 nolist' \
"$@"
}
less_vim "$file"
Jump to Line
Something went wrong with that request. Please try again.