From cab220e17586e5cb648ab218c4b54fd5062b5fd0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 21 Jun 2019 23:44:34 +1200 Subject: Add :help and README.md --- README.md | 13 +++++++++++++ doc/select_old_files.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 README.md create mode 100644 doc/select_old_files.txt 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* + + *(SelectOldFiles)* +The `(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 . + +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: -- cgit v1.2.3