On 2024-05-29, ElwinGao4444 wrote:
> when I search text like this:
> 
>  1. www.github.com
>  2. www.google.com
> 
> -------------------------------------------------------------------------------
> 
> current cursor(cursor type is block) on the first "w" in first line,and then I
> using "/" to search target words: "www"
> when I type "enter" to search,the cursor jump to the first "w" in second line
> I think vim will scan word from current letter(not jump to next "www"), but 
> vim
> will search word exclude current letter
> I don't understand why design like this?

If Vim included the current location in the search and stopped at
the first "w" of the "www" in the first line, typing "n" to find the
next match would find that same match at the same location and the
search would never progress.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20240529154523.GJ24132%40phoenix.

Raspunde prin e-mail lui