Преглед на файлове

Rework the default skiplist

Marco Hinz преди 8 години
родител
ревизия
c905a0c959
променени са 2 файла, в които са добавени 6 реда и са изтрити 7 реда
  1. 4 3
      autoload/startify.vim
  2. 2 4
      doc/startify.txt

+ 4 - 3
autoload/startify.vim

@@ -20,9 +20,10 @@ let s:tf             = exists('g:startify_transformations')
 
 let s:skiplist = get(g:, 'startify_skiplist', [
       \ 'COMMIT_EDITMSG',
-      \ escape(fnamemodify(resolve($VIMRUNTIME), ':p'), '\') .'doc',
-      \ 'bundle/.*/doc',
-      \ 'plugged/.*/doc',
+      \ 'runtime/doc/.*\.txt',
+      \ 'bundle/.*/doc/.*\.txt',
+      \ 'plugged/.*/doc/.*\.txt',
+      \ escape(fnamemodify(resolve($VIMRUNTIME), ':p'), '\') .'doc/.*\.txt',
       \ ])
 
 let s:padding_left = repeat(' ', get(g:, 'startify_padding_left', 3))

+ 2 - 4
doc/startify.txt

@@ -978,11 +978,9 @@ Anyway, this particular issue can be resolved in different ways. See:
 Startify is cluttered with help files!~
 
 Everytime you use |:h|, you open a file from the Vim runtime directory or of
-an installed plugin. By default, Startify hides these by skipping the
-directories under `$VIMRUNTIME/doc` and `(bundle|plugged)/.*/doc`.
+an installed plugin. By default, Startify detects these files and skips them.
 
-This works for most use cases, but not for all. E.g. GUIs embed Vim and both
-processes could have a different |$VIMRUNTIME|.
+This works for most use cases, but not for all.
 
 If the default fails for you and the Startify buffer is cluttered with help
 files, add that path to the skiplist yourself: |g:startify_skiplist|.