aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-06 09:54:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-06 09:54:57 +1300
commit9ea61ae2122a7d87e89479d5a286b8af66e67b01 (patch)
tree0ac1b989a0f46c979a7640061ad8b27f2af3a723 /vim/plugin
parentDon't use VimL ==# for number comparisons (diff)
downloaddotfiles-9ea61ae2122a7d87e89479d5a286b8af66e67b01.tar.gz
dotfiles-9ea61ae2122a7d87e89479d5a286b8af66e67b01.zip
Remove \m\C prefix from inapplicable VimL regexes
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/strip_trailing_whitespace.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/plugin/strip_trailing_whitespace.vim b/vim/plugin/strip_trailing_whitespace.vim
index ceeaec7c..677e51c5 100644
--- a/vim/plugin/strip_trailing_whitespace.vim
+++ b/vim/plugin/strip_trailing_whitespace.vim
@@ -30,11 +30,11 @@ function! s:StripTrailingWhitespace()
" Replace the line with a subsitution of its text stripping extraneous
" whitespace
- call setline(l:li, substitute(l:line, '\m\C\s\+$', '', 'g'))
+ call setline(l:li, substitute(l:line, '\s\+$', '', 'g'))
" If this line has any non-whitespace characters on it, update l:lw with
" its index
- if l:line =~# '\m\C\S'
+ if l:line =~# '\S'
let l:lw = l:li
endif