From 7676944ad75b6c5f9793a3594b93433c444c0f0e Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 11 Jun 2014 12:35:01 +0200 Subject: [PATCH] Doc: add another example for custom indices --- doc/startify.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/startify.txt b/doc/startify.txt index 64cbf63..73d5235 100644 --- a/doc/startify.txt +++ b/doc/startify.txt @@ -357,6 +357,10 @@ This would result in: [2] /last/recently/used/file6 etc. +If you want numbers to start at 1 instead of 0, you could use this: +> + let g:startify_custom_indices = map(range(1,100), 'string(v:val)') +< NOTE: There is no sanitizing going on, so you should know what you're doing! Best practices: