aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-06 20:03:49 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-06 20:03:49 +1300
commitc94c7615973d099aee0fb0846e0c647de320ba1f (patch)
tree8a251fcb0d465cc557b08c3137a0751fc9eb20b7 /plugin
parentUse explicitly case-insensitive operators (diff)
downloadvim-nextag-c94c7615973d099aee0fb0846e0c647de320ba1f.tar.gz
vim-nextag-c94c7615973d099aee0fb0846e0c647de320ba1f.zip
Unfold excessive :execute loop
This was just overdoing it.
Diffstat (limited to 'plugin')
-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>