Rework the default skiplist

This commit is contained in:
Marco Hinz 2017-12-06 20:11:16 +01:00
parent b89579e456
commit c905a0c959
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F
2 changed files with 6 additions and 7 deletions

View file

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

View file

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