From: Bart Trojanowski Date: Fri, 27 Nov 2009 06:02:37 +0000 (-0500) Subject: vim: make sure headers begin with \w X-Git-Tag: 0.1~313^2~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=651b215f0f6d4f220ff67941dbecd54692382472;p=notmuch.git vim: make sure headers begin with \w --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 0adca0b0..63095ed5 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -886,7 +886,7 @@ function! s:NM_cmd_compose(words, body_lines) let hdrs = { } for word in a:words - let m = matchlist(word, '^\([^:]\+\):\s*\(.*\)\s*$') + let m = matchlist(word, '^\(\w[^:]*\):\s*\(.*\)\s*$') if !len(m) throw 'Eeek! bad parameter ''' . string(word) . '''' endif