summaryrefslogtreecommitdiffstats
path: root/runtime/pack/dist/opt/matchit/autoload/matchit.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/pack/dist/opt/matchit/autoload/matchit.vim')
-rw-r--r--runtime/pack/dist/opt/matchit/autoload/matchit.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/pack/dist/opt/matchit/autoload/matchit.vim b/runtime/pack/dist/opt/matchit/autoload/matchit.vim
index f56e9e223d..4f3dd8ff9e 100644
--- a/runtime/pack/dist/opt/matchit/autoload/matchit.vim
+++ b/runtime/pack/dist/opt/matchit/autoload/matchit.vim
@@ -1,6 +1,6 @@
" matchit.vim: (global plugin) Extended "%" matching
" autload script of matchit plugin, see ../plugin/matchit.vim
-" Last Change: 2019 Oct 24
+" Last Change: Mar 01, 2020
let s:last_mps = ""
let s:last_words = ":"
@@ -48,6 +48,8 @@ function matchit#Match_wrapper(word, forward, mode) range
execute "normal! gv\<Esc>"
elseif a:mode == "o" && mode(1) !~# '[vV]'
exe "norm! v"
+ elseif a:mode == "n" && mode(1) =~# 'ni'
+ exe "norm! v"
endif
" In s:CleanUp(), we may need to check whether the cursor moved forward.
let startpos = [line("."), col(".")]