dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 2e7bd8d5f7dabffb5ec3ec4f11fa55ca2ff96edd
parent 50a27e4fac217f48be30dcaeab2faa68b7c36b70
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri,  3 Aug 2018 06:28:51 -0400

Fix whitespace issue in vimrc MySkeleton

Blank license lines contained a trailing whitespace. Don't do that.

Diffstat:
M.vim/vimrc | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.vim/vimrc b/.vim/vimrc @@ -128,12 +128,15 @@ function! MySkeleton() for l:token in l:comments if l:token =~ '^b\?:' let l:comment = substitute(l:token, '^b\?:', '', '') - let l:comment .= ' ' endif endfor let l:idx = 0 for l:line in l:skel - let l:line = l:comment . l:line + if l:line =~ "^$" + let l:line = l:comment + else + let l:line = l:comment .' '. l:line + endif let l:line = substitute(l:line, '{{ year }}', "\\=strftime('%Y')", '') let l:skel[l:idx] = l:line let l:idx += 1