aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-21 23:57:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-21 23:57:27 +1200
commit42d8136151392209aa8f12e70846d6407335d621 (patch)
tree896eecc49034a8109f66cb6fb0dc8cc8b52d2cdc /vim
parent241269f340baf6ea5cfb46f41a1016a3673afcc5 (diff)
downloaddotfiles-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.vim17
m---------vim/bundle/select_old_files0
-rw-r--r--vim/plugin/select_old_files.vim8
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>