I want to yank text from a window and search for it but the text contains characters not interpreted literally by the search command, e.g. a file path. Is there an easy way I can quote the yanked text when entering the search command?
|
There is unfortunately no option to have search input interpreted as raw text. There is something close to it though: the To activate You can also activate The following characters still won't be interpreted literally in nomagic mode and will need to be escaped with a
See |
|||||||||
|
|
You can search for literal text by using the In my .vimrc I have this command to search for text literally:
|
|||||||||
|
|
An easy way to 'cheat', particularly for paths or other text containing forward slashes, is to use Source: |
|||
|
|