aboutsummaryrefslogtreecommitdiff
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
parentAdd a path to Vim help files (diff)
downloaddotfiles-42d8136151392209aa8f12e70846d6407335d621.tar.gz
dotfiles-42d8136151392209aa8f12e70846d6407335d621.zip
Spin out select_old_files.vim into distro
-rw-r--r--.gitmodules3
-rw-r--r--vim/autoload/select_old_files.vim17
m---------vim/bundle/select_old_files0
-rw-r--r--vim/plugin/select_old_files.vim8
4 files changed, 3 insertions, 25 deletions
diff --git a/.gitmodules b/.gitmodules
index 1a1178e2..f91504da 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -50,6 +50,9 @@
[submodule "vim/bundle/replace_operator"]
path = vim/bundle/replace_operator
url = https://sanctum.geek.nz/code/vim-replace-operator.git
+[submodule "vim/bundle/select_old_files"]
+ path = vim/bundle/select_old_files
+ url = https://sanctum.geek.nz/code/vim-select-old-files.git
[submodule "vim/bundle/shebang_change_filetype"]
path = vim/bundle/shebang_change_filetype
url = https://sanctum.geek.nz/code/vim-shebang-change-filetype.git
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>