diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-21 23:57:27 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-21 23:57:27 +1200 |
commit | 42d8136151392209aa8f12e70846d6407335d621 (patch) | |
tree | 896eecc49034a8109f66cb6fb0dc8cc8b52d2cdc /vim | |
parent | Add a path to Vim help files (diff) | |
download | dotfiles-42d8136151392209aa8f12e70846d6407335d621.tar.gz dotfiles-42d8136151392209aa8f12e70846d6407335d621.zip |
Spin out select_old_files.vim into distro
Diffstat (limited to 'vim')
-rw-r--r-- | vim/autoload/select_old_files.vim | 17 | ||||
m--------- | vim/bundle/select_old_files | 0 | ||||
-rw-r--r-- | vim/plugin/select_old_files.vim | 8 |
3 files changed, 0 insertions, 25 deletions
diff --git a/vim/autoload/select_old_files.vim b/vim/autoload/select_old_files.vim deleted file mode 100644 index aceff110..00000000 --- a/vim/autoload/select_old_files.vim +++ /dev/null @@ -1,17 +0,0 @@ -function! select_old_files#(...) abort - if a:0 - if a:1 =~# '^\d\+$' - let limit = a:1 - else - echoerr 'Invalid count' - endif - elseif exists('g:select_old_files_limit') - let limit = g:select_old_files_limit - else - let limit = &lines - 2 - endif - let oldfiles = v:oldfiles - let v:oldfiles = v:oldfiles[:limit - 1] - browse oldfiles - let v:oldfiles = oldfiles -endfunction diff --git a/vim/bundle/select_old_files b/vim/bundle/select_old_files new file mode 160000 +Subproject c9ed42c145e09ea121b8e3ff94061253fe4dbd9 diff --git a/vim/plugin/select_old_files.vim b/vim/plugin/select_old_files.vim deleted file mode 100644 index 77c7746e..00000000 --- a/vim/plugin/select_old_files.vim +++ /dev/null @@ -1,8 +0,0 @@ -if exists('loaded_select_old_files') || &compatible || !exists(':oldfiles') - finish -endif -let loaded_select_old_files = 1 -command! -bar -nargs=? SelectOldFiles - \ call select_old_files#(<f-args>) -nnoremap <Plug>SelectOldFiles - \ :<C-U>SelectOldFiles<CR> |