Highlight all trailing extra whitespaces
authorSergey Matveev <stargrave@stargrave.org>
Mon, 2 Sep 2019 09:28:29 +0000 (12:28 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 2 Sep 2019 09:33:33 +0000 (12:33 +0300)
vim/.vimrc

index af68bd1bf9a6bd6f39aa010bd03e63e922e5f548..97f506d8ee02f5e107b3d955bbca9e9477a64abc 100644 (file)
@@ -38,7 +38,7 @@ set cursorline
 set cursorcolumn
 set colorcolumn=80
 highlight ExtraWhitespace ctermbg=green ctermfg=blue
-match ExtraWhitespace /^\s*$/
+match ExtraWhitespace /\s\+$/
 
 set relativenumber
 set numberwidth=3