Skip to content

Commit c63394d

Browse files
authored
Add git to default blacklist (#148)
Also sync blacklists back up in he various locations where they are reported.
1 parent 234f6f6 commit c63394d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ Whitespace highlighting is enabled by default, with a highlight color of red.
162162
This replaces the filetypes from the default list of blacklisted filetypes. The
163163
default types that are blacklisted are:
164164
```vim
165-
['diff', 'gitcommit', 'unite', 'qf', 'help', 'markdown']
165+
['diff', 'git', 'gitcommit', 'unite', 'qf', 'help', 'markdown', 'fugitive']
166166
```
167167
If you prefer to also keep these default filetypes ignored, simply include them in the
168168
blacklist:
169169
```vim
170170
let g:better_whitespace_filetypes_blacklist=['<filetype1>', '<filetype2>', '<etc>',
171-
'diff', 'gitcommit', 'unite', 'qf', 'help']
171+
'diff', 'git', 'gitcommit', 'unite', 'qf', 'help', 'markdown', 'fugitive']
172172
```
173173
174174
This blacklist can be overriden on a per-buffer basis using the buffer toggle enable and

doc/better-whitespace.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ PREFERENCES *better-whitespace-preferences*
5858
`g:better_whitespace_enabled` (defaults to 1)
5959
Set this to enable whitespace highlighting by default, set to 0 to disable it.
6060

61-
`g:better_whitespace_filetypes_blacklist` (defaults to ['diff', 'gitcommit',
62-
'unite', 'qf', 'help', 'markdown'])
61+
`g:better_whitespace_filetypes_blacklist` (defaults to ['diff', 'git',
62+
'gitcommit','unite', 'qf', 'help',
63+
'markdown', 'fugitive'])
6364
Disables better-whitespace by default on these file types.
6465
Overrides `g:better_whitespace_enabled`, and can be manually overriden with
6566
|better-whitespace-:EnableWhitespace| and related commands.

plugin/better-whitespace.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ call s:InitVariable('strip_whitelines_at_eof', 0)
5151
call s:InitVariable('strip_whitespace_confirm', 1)
5252

5353
" Set this to blacklist specific filetypes
54-
call s:InitVariable('better_whitespace_filetypes_blacklist', ['diff', 'gitcommit', 'unite', 'qf', 'help', 'markdown', 'fugitive'])
54+
call s:InitVariable('better_whitespace_filetypes_blacklist', ['diff', 'git', 'gitcommit', 'unite', 'qf', 'help', 'markdown', 'fugitive'])
5555

5656
" Skip empty (whitespace-only) lines for highlighting
5757
call s:InitVariable('better_whitespace_skip_empty_lines', 0)

0 commit comments

Comments
 (0)