aboutsummaryrefslogtreecommitdiff
path: root/vim/scripts.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/scripts.vim
parent9ffd25906b9ec3b85bd37e2ba3d9a5b6ee1b3a0e (diff)
downloaddotfiles-99318aa2a9f6a49972df292df782999b3083b49f.tar.gz
dotfiles-99318aa2a9f6a49972df292df782999b3083b49f.zip
Remove pattern \m where not needed for 'magic'
Diffstat (limited to 'vim/scripts.vim')
-rw-r--r--vim/scripts.vim22
1 files changed, 11 insertions, 11 deletions
diff --git a/vim/scripts.vim b/vim/scripts.vim
index 6a44aa3f..ae792ada 100644
--- a/vim/scripts.vim
+++ b/vim/scripts.vim
@@ -11,50 +11,50 @@ if stridx(s:line, '#!') != 0
endif
" AWK
-if s:line =~# '\m\<[gm]\=awk\>'
+if s:line =~# '\<[gm]\=awk\>'
setfiletype awk
" Perl 5
-elseif s:line =~# '\m\<perl5\=\>'
+elseif s:line =~# '\<perl5\=\>'
setfiletype perl
" Perl 6
-elseif s:line =~# '\m\<perl6\>'
+elseif s:line =~# '\<perl6\>'
setfiletype perl6
" PHP
-elseif s:line =~# '\m\<php\>'
+elseif s:line =~# '\<php\>'
setfiletype php
" Python
-elseif s:line =~# '\m\<python[23]\=\>'
+elseif s:line =~# '\<python[23]\=\>'
setfiletype python
" Ruby
-elseif s:line =~# '\m\<ruby[23]\=\>'
+elseif s:line =~# '\<ruby[23]\=\>'
setfiletype ruby
" sed
-elseif s:line =~# '\m\<sed\>'
+elseif s:line =~# '\<sed\>'
setfiletype sed
" Bash
-elseif s:line =~# '\m\<bash\>'
+elseif s:line =~# '\<bash\>'
let b:is_bash = 1
setfiletype sh
" Korn shell
-elseif s:line =~# '\m\<\%(\ksh\|ksh93\|mksh\|pdksh\)\>'
+elseif s:line =~# '\<\%(\ksh\|ksh93\|mksh\|pdksh\)\>'
let b:is_kornshell = 1
setfiletype sh
" POSIX/Bourne shell
-elseif s:line =~# '\m\<sh\>'
+elseif s:line =~# '\<sh\>'
let b:is_posix = 1
setfiletype sh
" TCL
-elseif s:line =~# '\m\<\%(tcl\|wish\)\>'
+elseif s:line =~# '\<\%(tcl\|wish\)\>'
setfiletype tcl
endif