Переглянути джерело

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|.