From 38993f77b9c2b44583321b747800d69b4a5313f2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 27 May 2019 21:02:43 +1200 Subject: Refine apostrophe matching for mail greetings --- vim/after/ftplugin/mail.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim') diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 76605d03..937ee40c 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -15,13 +15,13 @@ if line('.') == 1 && col('.') == 1 while getline('.') =~? '^> *' \ . '\%(' \ . '\%(' - \ . 'g[''’]\=day' + \ . "g['\u2019]\\=day" \ . '\|\%(good \)\=\%(morning\|afternoon\|evening\)' \ . '\|h[eu]\%(ll\|rr\)o\+' \ . '\|hey\+' \ . '\|hi\+' \ . '\|sup' - \ . '\|what''s up' + \ . "\\|what['\u2019]\\=s up" \ . '\|yo' \ . '\)' \ . '[[:punct:] ]*' -- cgit v1.2.3