[vim] ":help /\V" does not mention special meaning of "/" (#530)

31 views
Skip to first unread message

Justin M. Keyes

unread,
Dec 13, 2015, 2:33:46 PM12/13/15
to vim/vim

:help /\V states the following:

Use of "\V" means that in the pattern after it only the backslash has a                                                                                     
special meaning.  "very nomagic"

But this seems incorrect, because / (forward-slash) still must be escaped with a backslash.


Reply to this email directly or view it on GitHub.

Christian Brabandt

unread,
Dec 13, 2015, 2:40:47 PM12/13/15
to vim/vim

Closed #530.

Christian Brabandt

unread,
Dec 13, 2015, 2:40:55 PM12/13/15
to vim/vim

Only, when using '/' for searching, because than the '/' would terminate the search command.

If you use `:let @/='\V/' then it works as expected.

This is actually not a bug.

Justin M. Keyes

unread,
Dec 13, 2015, 3:04:33 PM12/13/15
to vim/vim

Er, ok. It's still confusing as a user when /\Vfoo/bar invokes the special meaning of /, contrary to the documentation of :help /\V.

Reply all
Reply to author
Forward
0 new messages