aboutsummaryrefslogtreecommitdiff
path: root/plugin/nextag.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/nextag.vim')
-rw-r--r--plugin/nextag.vim10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugin/nextag.vim b/plugin/nextag.vim
index 4e5ddd5..973bec5 100644
--- a/plugin/nextag.vim
+++ b/plugin/nextag.vim
@@ -39,7 +39,9 @@ endfunction
"
" Default remappings.
"
-for s:mode in ['n', 'o', 'v']
- execute s:mode . 'map <silent> <leader>. :<C-U>call <SID>MoveToSGMLTag("next", "' . s:mode . '", v:count1)<CR>'
- execute s:mode . 'map <silent> <leader>, :<C-U>call <SID>MoveToSGMLTag("prev", "' . s:mode . '", v:count1)<CR>'
-endfor
+nmap <silent> <leader>. :<C-U>call <SID>MoveToSGMLTag("next", "n", v:count1)<CR>
+nmap <silent> <leader>, :<C-U>call <SID>MoveToSGMLTag("prev", "n", v:count1)<CR>
+omap <silent> <leader>. :<C-U>call <SID>MoveToSGMLTag("next", "o", v:count1)<CR>
+omap <silent> <leader>, :<C-U>call <SID>MoveToSGMLTag("prev", "o", v:count1)<CR>
+vmap <silent> <leader>. :<C-U>call <SID>MoveToSGMLTag("next", "v", v:count1)<CR>
+vmap <silent> <leader>, :<C-U>call <SID>MoveToSGMLTag("prev", "v", v:count1)<CR>