diff options
author | Guangxiong Lin <[email protected]> | 2022-12-23 23:56:15 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-12-23 23:56:15 +0800 |
commit | d33989f616136991955f9966fcfffac508b20bec (patch) | |
tree | 80e55d154757196958b2739fbd71ce684e715c0a | |
parent | 78b8cb1a818422d4cf33cc02025fa9cc7de48ebb (diff) | |
download | dotfiles-d33989f616136991955f9966fcfffac508b20bec.tar.gz dotfiles-d33989f616136991955f9966fcfffac508b20bec.tar.bz2 dotfiles-d33989f616136991955f9966fcfffac508b20bec.zip |
Highlight whitespace in vim
-rw-r--r-- | .vim/after/plugin/minpac.vim | 1 | ||||
-rw-r--r-- | .vim/after/plugin/vim-better-whitespace.vim | 4 |
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 |