Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions macros/less.vim
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,9 @@ function! s:LessMode()
call s:Map('map <silent> <buffer> v :call <SID>ToggleLess()<CR>')

" turn on tail if in options
if exists('g:less.tail') && g:less.tail
normal F
endif
" if exists('g:less.tail') && g:less.tail
" normal F
" endif
endfunction

function! s:CloseBuffer()
Expand Down
5 changes: 5 additions & 0 deletions vimpager
Original file line number Diff line number Diff line change
Expand Up @@ -841,12 +841,17 @@ page_files() {
fi

init_opts="'columns': $cols, 'tmp_dir': '$tmp', 'line_numbers': ${line_numbers:-0}, 'tail': ${tail:-0}, 'is_doc': ${is_doc:-0}, 'runtime': '$runtime', 'rc': '$vimrc'"
tail_cmd=
if [ $tail -eq 1 ]; then
tail_cmd="normal F"
fi

"$vim_cmd" -N -i NONE \
$vim_options \
--cmd "set rtp^=$runtime" \
--cmd "call vimpager#Init({ $init_opts })" \
--cmd "silent! exe 'source ' . fnameescape('$system_vimrc')" \
${tail_cmd:+-c "$tail_cmd"} \
${extra_cmd:+--cmd "$extra_cmd"} \
${vimrc:+-u "$vimrc"} \
${extra_c:+-c "$extra_c"} \
Expand Down