aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-02-11 05:16:25 +1300
committerTom Ryder <tom@sanctum.geek.nz>2012-02-11 05:16:25 +1300
commitc9634d229b413168633332b419a5b81f82195c0b (patch)
treeea3cee82d58fe58fcfd57be2eb5c11f305ce55ea /plugin
parentRefined regex; ignores SGML comments and PHP tags. (diff)
downloadvim-nextag-c9634d229b413168633332b419a5b81f82195c0b.tar.gz
vim-nextag-c9634d229b413168633332b419a5b81f82195c0b.zip
Force magic so this regex works.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/nextag.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/nextag.vim b/plugin/nextag.vim
index 2f15f8a..68bb0fc 100644
--- a/plugin/nextag.vim
+++ b/plugin/nextag.vim
@@ -25,7 +25,7 @@ function! s:MoveToSGMLTag(direction, mode, count)
endif
let l:visualfix = a:mode == 'v' && a:direction == 'next' && &selection != 'exclusive' ? 1 : 0
for l:iteration in range(1, a:count)
- call search('<\/\?\w\+[^>]*>', a:direction == 'next' ? 'W' : 'Wb')
+ call search('\m<\/\?\w\+[^>]*>', a:direction == 'next' ? 'W' : 'Wb')
if l:visualfix
normal! l
endif