File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ if filereadable(expand("~/.vim/bundle/vundle/autoload/vundle.vim"))
5050 Bundle " nginx.vim"
5151 Bundle " openvpn"
5252 Bundle " snipMate"
53- Bundle " anwolib"
53+
54+ " Enable when you enable "Trim blank lines"
55+ " Bundle "anwolib"
5456 " }}}
5557
5658endif " }}}
@@ -191,7 +193,8 @@ if has ("autocmd")
191193 " Add multiple empty lines to avoid them getting trimmed.
192194 " Ref: https://github.com/drybjed/dotfiles/pull/2#issuecomment-231701424
193195 " https://stackoverflow.com/questions/7495932/how-can-i-trim-blank-lines-at-the-end-of-file-in-vim
194- autocmd BufWritePre * KeepView silent ! % s #\( [^\s ]\)\( $ \n \s * \)\{ 1 \}\% $ #\1 #
196+ " Disabled as this could have side effects.
197+ " autocmd BufWritePre * KeepView silent! %s#\([^\s]\)\($\n\s*\)\{1\}\%$#\1#
195198
196199endif " }}}1
197200
You can’t perform that action at this time.
0 commit comments