aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/select_old_files.vim
blob: 518b98d4159d4f2b5d67b42d2fa164712e8741e9 (plain) (blame)
1
2
3
4
5
6
7
function! select_old_files#() abort
  let oldfiles = v:oldfiles
  let limit = get(g:, 'select_old_files_limit', &lines - 1)
  let v:oldfiles = v:oldfiles[:limit-2]
  browse oldfiles
  let v:oldfiles = oldfiles
endfunction