summaryrefslogtreecommitdiffstats
path: root/vim/.vim/plugin/eolws.vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-10-08 12:09:20 -0400
committerJesse Luehrs <doy@tozt.net>2023-10-08 12:59:10 -0400
commit49570c8dd03448240897b37b68567352b790f16f (patch)
tree6c192a52046d5d0dd1b84a838befd8e777cfeafb /vim/.vim/plugin/eolws.vim
parent66939c71da756c1d9e07a88a4a8ea2a018650060 (diff)
downloadconf-49570c8dd03448240897b37b68567352b790f16f.tar.gz
conf-49570c8dd03448240897b37b68567352b790f16f.zip
convert to stow
Diffstat (limited to 'vim/.vim/plugin/eolws.vim')
-rw-r--r--vim/.vim/plugin/eolws.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/.vim/plugin/eolws.vim b/vim/.vim/plugin/eolws.vim
new file mode 100644
index 0000000..1f1a003
--- /dev/null
+++ b/vim/.vim/plugin/eolws.vim
@@ -0,0 +1,6 @@
+augroup eolws
+ autocmd!
+ autocmd InsertEnter * syn clear EOLWS | syn match EOLWS excludenl /\s\+\%#\@!$/
+ autocmd InsertLeave * syn clear EOLWS | syn match EOLWS excludenl /\s\+$/
+augroup END
+highlight EOLWS ctermbg=red guibg=red