vim:aucmd: Don't highlight trailing spaces in terminal

This commit is contained in:
2024-10-16 14:17:37 +02:00
parent 0a12cd58ed
commit c7c130f050

View File

@@ -13,6 +13,9 @@ if (has('nvim'))
augroup terminal_no_spellcheck
au!
autocmd TermOpen * setlocal nospell
" Do not highlight trailing whitespace in terminal windows
autocmd TermOpen * silent! call
\ matchdelete(filter(getmatches(), 'v:val["group"] == "TrailingWhitespace"')[0]["id"])
augroup END
endif