From 0e70a0defd83492bb5f466d1232afd3f69134cbd Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 16 Jul 2018 14:06:19 +1200 Subject: Add \m 'magic' setting to mail headers jump This is because Vim's search() function checks the value of 'magic' to decide how to interpret the pattern. It's crazy to have this option off, but best to be explicit about it anyway. --- vim/after/ftplugin/mail.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim/after') diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 4d2f0a17..74261d8c 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -7,7 +7,7 @@ endif " the first entirely blank line, if something hasn't already moved us from the " start of the file if line('.') == 1 && col('.') == 1 - call search('^$', 'c') + call search('\m^$', 'c') endif " Add a space to the end of wrapped lines for format-flowed mail -- cgit v1.2.3