aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-15 12:32:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-15 12:32:01 +1200
commit99318aa2a9f6a49972df292df782999b3083b49f (patch)
tree63d28adae6cd8490dd53e0e75669f353bfbaf96c /vim/filetype.vim
parent9ffd25906b9ec3b85bd37e2ba3d9a5b6ee1b3a0e (diff)
downloaddotfiles-99318aa2a9f6a49972df292df782999b3083b49f.tar.gz
dotfiles-99318aa2a9f6a49972df292df782999b3083b49f.zip
Remove pattern \m where not needed for 'magic'
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r--vim/filetype.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index 33d08f0b..00e47c0c 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -23,11 +23,11 @@ function! s:StripRepeat()
let l:fn = expand('<afile>')
" Strip leading and trailing #hashes#
- if l:fn =~# '\m^#\+.*#\+$'
- let l:fn = substitute(l:fn, '\m^#\+\(.\+\)#\+$', '\1', '')
+ if l:fn =~# '^#\+.*#\+$'
+ let l:fn = substitute(l:fn, '^#\+\(.\+\)#\+$', '\1', '')
" Strip trailing tilde~
- elseif l:fn =~# '\m\~$'
+ elseif l:fn =~# '\~$'
let l:fn = substitute(l:fn, '\~$', '', '')
" Strip generic .extension