diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 22:08:08 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 22:08:08 +1200 |
commit | 2cbdbf0baf4212e48fefb168cc7914f1dabdb80c (patch) | |
tree | c300f93edc89ba0b9d58c1086d22faf68a0c1bd0 | |
parent | Update digraph_search.vim to v1.1.0 (diff) | |
download | dotfiles-2cbdbf0baf4212e48fefb168cc7914f1dabdb80c.tar.gz dotfiles-2cbdbf0baf4212e48fefb168cc7914f1dabdb80c.zip |
Fix up some pattern qualifiers
-rw-r--r-- | vim/autoload/html.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/autoload/html.vim b/vim/autoload/html.vim index 9466be33..7ac4f9d3 100644 --- a/vim/autoload/html.vim +++ b/vim/autoload/html.vim @@ -28,11 +28,11 @@ function! html#TimestampUpdate() abort endif let cv = winsaveview() call cursor(1,1) - let li = search('\C^\s*<em>Last updated: .\+</em>$', 'n') + let li = search('\m\C^\s*<em>Last updated: .\+</em>$', 'n') if li - let date = substitute(system('date -u'), '\C\n$', '', '') + let date = substitute(system('date -u'), '\n$', '', '') let line = getline(li) - call setline(li, substitute(line, '\C\S.*', + call setline(li, substitute(line, '\S.*', \ '<em>Last updated: '.date.'</em>', '')) endif call winrestview(cv) |