diff options
author | erw7 <erw7.github@gmail.com> | 2019-05-27 12:26:32 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2019-06-05 09:54:52 +0900 |
commit | 777c2a25ce00f12b2d0dc26d594b1ba7ba10dcc6 (patch) | |
tree | 5645109e491af245d224c59f1c997f7d19af73c5 /runtime | |
parent | 485972dd64317e6a09ce7694cf0f903fb6d13cbd (diff) | |
download | rneovim-777c2a25ce00f12b2d0dc26d594b1ba7ba10dcc6.tar.gz rneovim-777c2a25ce00f12b2d0dc26d594b1ba7ba10dcc6.tar.bz2 rneovim-777c2a25ce00f12b2d0dc26d594b1ba7ba10dcc6.zip |
vim-patch:8.1.1270: cannot see current match position
Problem: Cannot see current match position.
Solution: Show "3/44" when using the "n" command and "S" is not in
'shortmess'. (Christian Brabandt, closes vim/vim#4317)
https://github.com/vim/vim/commit/9dfa3139198b38b28673e251a3756430065914e9
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 4 | ||||
-rw-r--r-- | runtime/doc/pattern.txt | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index cce9f681f9..34779541d8 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5254,7 +5254,7 @@ A jump table for the options with a short description can be found at |Q_op|. function to get the effective shiftwidth value. *'shortmess'* *'shm'* -'shortmess' 'shm' string (Vim default "filnxtToOF", Vi default: "") +'shortmess' 'shm' string (Vim default "filnxtToOFS", Vi default: "S") global This option helps to avoid all the |hit-enter| prompts caused by file messages, for example with CTRL-G, and to avoid some other messages. @@ -5294,6 +5294,8 @@ A jump table for the options with a short description can be found at |Q_op|. q use "recording" instead of "recording @a" F don't give the file info when editing a file, like `:silent` was used for the command + S do not show search count message when searching, e.g. + "[1/5]" This gives you the opportunity to avoid that a change between buffers requires you to hit <Enter>, but still gives as useful a message as diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt index 88b7f65209..022dc5607e 100644 --- a/runtime/doc/pattern.txt +++ b/runtime/doc/pattern.txt @@ -141,6 +141,17 @@ use <Esc> to abandon the search. All matches for the last used search pattern will be highlighted if you set the 'hlsearch' option. This can be suspended with the |:nohlsearch| command. +When 'shortmess' does not include the "S" flag, Vim will automatically show an +index, on which the cursor is. This can look like this: > + + [1/5] Cursor is on first of 5 matches. + [1/>99] Cursor is on first of more than 99 matches. + [>99/>99] Cursor is after 99 match of more than 99 matches. + [?/??] Unknown how many matches exists, generating the + statistics was aborted because of search timeout. + +Note: the count does not take offset into account. + When no match is found you get the error: *E486* Pattern not found Note that for the |:global| command this behaves like a normal message, for Vi compatibility. For the |:s| command the "e" flag can be used to avoid the |