aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-21 23:44:34 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-21 23:44:34 +1200
commitcab220e17586e5cb648ab218c4b54fd5062b5fd0 (patch)
treed4ef027f26834a380c1533d0b71794cc188a5957
parentCommitting plugin as I've got it (diff)
downloadvim-select-old-files-cab220e17586e5cb648ab218c4b54fd5062b5fd0.tar.gz
vim-select-old-files-cab220e17586e5cb648ab218c4b54fd5062b5fd0.zip
Add :help and README.md
-rw-r--r--README.md13
-rw-r--r--doc/select_old_files.txt40
2 files changed, 53 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..cd4208c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,13 @@
+select\_old\_files.vim
+======================
+
+Slightly enhanced `:browse oldfiles` that limits the count of selectable files,
+defaulting to just short of the window height, to avoid a pager.
+
+License
+-------
+
+Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself.
+See `:help license`.
+
+[1]: https://sanctum.geek.nz/
diff --git a/doc/select_old_files.txt b/doc/select_old_files.txt
new file mode 100644
index 0000000..d6fd8fe
--- /dev/null
+++ b/doc/select_old_files.txt
@@ -0,0 +1,40 @@
+*select_old_files.txt* For Vim version 7.0 Last change: 2019 Jun 21
+
+DESCRIPTION *select_old_files*
+
+Slightly enhanced `:browse oldfiles` that limits the count of selectable
+files, defaulting to just short of the window height, to avoid a pager.
+
+REQUIREMENTS *select_old_files-requirements*
+
+This plugin only loads if 'compatible' is not set.
+
+COMMANDS *select_old_files-commands*
+
+ *:SelectOldFiles*
+Enter the `:SelectOldFiles` command for a |v:oldfiles| menu. It works like
+`:browse oldfiles`, except it limits the number of files presented. An
+optional argument can be provided; it defaults to `g:select_old_files_limit`
+if set, or a count just short of the window height.
+
+MAPPINGS *select_old_files-mappings*
+
+ *<Plug>(SelectOldFiles)*
+The `<Plug>(SelectOldFiles)` map in normal mode just does `:SelectOldFiles`
+with no argument.
+
+OPTIONS *select_old_files-options*
+
+ *g:select_old_files_limit*
+Set `g:select_old_files_limit` to the default count of |v:oldfiles| to be used
+in the absence of an argument to `:SelectOldFiles`.
+
+AUTHOR *select_old_files-author*
+
+Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.
+
+LICENSE *select_old_files-license*
+
+Licensed for distribution under the same terms as Vim itself (see |license|).
+
+ vim:tw=78:ts=8:ft=help:norl: