From d33989f616136991955f9966fcfffac508b20bec Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 23 Dec 2022 23:56:15 +0800 Subject: Highlight whitespace in vim --- .vim/after/plugin/minpac.vim | 1 + .vim/after/plugin/vim-better-whitespace.vim | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .vim/after/plugin/vim-better-whitespace.vim (limited to '.vim/after/plugin') diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim index 65e429e..a71ff38 100644 --- a/.vim/after/plugin/minpac.vim +++ b/.vim/after/plugin/minpac.vim @@ -123,6 +123,7 @@ function! InitMinpac() abort " misc call minpac#add('https://github.com/alok/notational-fzf-vim.git', {'type': 'opt'}) call minpac#add('https://github.com/freitass/todo.txt-vim.git', {'type': 'opt'}) + call minpac#add('https://github.com/ntpeters/vim-better-whitespace.git', {'type': 'opt'}) let g:minpac_initialized = 1 endfunction diff --git a/.vim/after/plugin/vim-better-whitespace.vim b/.vim/after/plugin/vim-better-whitespace.vim new file mode 100644 index 0000000..9f0b24a --- /dev/null +++ b/.vim/after/plugin/vim-better-whitespace.vim @@ -0,0 +1,4 @@ +let g:better_whitespace_enabled = 1 +let g:strip_whitespace_on_save = 0 + +packadd vim-better-whitespace -- cgit v1.2.3