dotfiles

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

commit d89bde4b807a8cce8af9bfd676abdd5adefa28dd
parent 38516d8fd3480a71b279c43108bff69058856768
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Tue,  7 Aug 2018 05:34:09 -0400

Fix pattern matching

Diffstat:
M.local/bin/fws | 2+-
M.vim/vimrc | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.local/bin/fws b/.local/bin/fws @@ -12,5 +12,5 @@ esac for arg do - find . -name *.$arg -exec sed -i -e "s/[[:space:]]+\$/$ext/g" '{}' \; + find . -name *.$arg -exec sed -i -e "s/[[:space:]]*\$/$ext/g" '{}' \; done diff --git a/.vim/vimrc b/.vim/vimrc @@ -133,14 +133,14 @@ function! MySkeleton() let l:space = '' for l:token in l:comments if l:token =~ '^s[^O]' - let l:firstcomment = substitute(l:token, '^s.\+:', '', '') - let l:comment = substitute(l:comments[l:idx + 1], '^m.\+:', '', '') + let l:firstcomment = substitute(l:token, '^s.*:', '', '') + let l:comment = substitute(l:comments[l:idx + 1], '^m.*:', '', '') if l:token =~ '^sr' let l:offset = len(l:firstcomment) - len(l:comment) let l:comment = repeat(' ', l:offset) . l:comment let l:endspace = repeat(' ', l:offset) endif - let l:lastcomment = substitute(l:comments[l:idx + 2], '^e.\+:', '', '') + let l:lastcomment = substitute(l:comments[l:idx + 2], '^e.*:', '', '') let l:space = (l:comments[l:idx + 1] =~ '^mb') ? ' ' : '' break elseif l:token =~ '^b\?:'