aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
AgeCommit message (Collapse)Author
2020-02-05Search(): Support visual mode and line-orientedTeddy Wing
Escape newlines so that multiline search works.
2020-02-05Search(): Don't overwrite the unnamed registerTeddy Wing
2020-02-04plugin/searchop.vim: Use z/ mappingTeddy Wing
Seems right, since I'm already using `g/` in vim-nohai. However, consider using a `#`- `*`-based mapping instead to handle forward and backward searching.
2020-02-04Search(): Use `feedkeys` instead of `normal!` to advance searchTeddy Wing
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()`.
2020-02-01Draft version of searching for what was selected by a motionTeddy Wing
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