Skip to content

Commit

Permalink
vimpager-nfo: turn off list and number/rnu
Browse files Browse the repository at this point in the history
  • Loading branch information
trapd00r committed Nov 16, 2011
1 parent eecf50c commit eac9f6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vimpager-nfo
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ 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 nonumber' \
-c 'set number | set nonumber' \
-c 'set laststatus=2' \
-c 'set colorcolumn=0 ft=b cursorline tw=80' \
-c 'set colorcolumn=0 ft=b cursorline tw=80 nolist' \
"$@"
}

Expand Down

0 comments on commit eac9f6b

Please sign in to comment.