aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-12-23 23:56:15 +0800
committerGuangxiong Lin <[email protected]>2022-12-23 23:56:15 +0800
commitd33989f616136991955f9966fcfffac508b20bec (patch)
tree80e55d154757196958b2739fbd71ce684e715c0a /.vim/after/plugin
parent78b8cb1a818422d4cf33cc02025fa9cc7de48ebb (diff)
downloaddotfiles-d33989f616136991955f9966fcfffac508b20bec.tar.gz
dotfiles-d33989f616136991955f9966fcfffac508b20bec.tar.bz2
dotfiles-d33989f616136991955f9966fcfffac508b20bec.zip
Highlight whitespace in vim
Diffstat (limited to '.vim/after/plugin')
-rw-r--r--.vim/after/plugin/minpac.vim1
-rw-r--r--.vim/after/plugin/vim-better-whitespace.vim4
2 files changed, 5 insertions, 0 deletions
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