Przeglądaj źródła

Doc: add another example for custom indices

Marco Hinz 11 lat temu
rodzic
commit
7676944ad7
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      doc/startify.txt

+ 4 - 0
doc/startify.txt

@@ -357,6 +357,10 @@ This would result in:
     [2]  /last/recently/used/file6
     [2]  /last/recently/used/file6
     etc.
     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!
 NOTE: There is no sanitizing going on, so you should know what you're doing!
 
 
 Best practices:
 Best practices: