Skip to content

Commit 7439a2d

Browse files
committed
Disabled "Trim blank lines at EOF".
Ref: #2 (comment)
1 parent 1624b03 commit 7439a2d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.vimrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

5658
endif " }}}
@@ -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

196199
endif " }}}1
197200

0 commit comments

Comments
 (0)