Age | Commit message (Collapse) | Author |
|
Escape newlines so that multiline search works.
|
|
|
|
Seems right, since I'm already using `g/` in vim-nohai.
However, consider using a `#`- `*`-based mapping instead to handle
forward and backward searching.
|
|
Because of `:h function-search-undo`, using `normal! n` at the end of
the function doesn't highlight the matches with 'hlsearch' (though it
does advance to the next match).
I've seen other mappings that add a `/<CR>` or `n` to the end of the
mapping, but that doesn't work here because it's an operator, so `g@`
needs to be the last thing in the mapping. And I was reluctant to work
out how to make it an `<expr>` mapping.
Fortunately, search highlighting works when `n` is used with
`feedkeys()`.
|
|
Currently doesn't highlight correctly. Only works in normal mode for
now. Overwrites the unnamed register.
Inspired by
https://github.com/godlygeek/vim-files/blob/8714546/plugin/vsearch.vim
|