aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
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