https://github.com/andrewradev/modsearch.vim
A command that lets you change the previous search in predefined ways
https://github.com/andrewradev/modsearch.vim
Last synced: about 2 months ago
JSON representation
A command that lets you change the previous search in predefined ways
- Host: GitHub
- URL: https://github.com/andrewradev/modsearch.vim
- Owner: AndrewRadev
- License: mit
- Created: 2016-02-01T22:04:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-13T10:01:18.000Z (about 9 years ago)
- Last Synced: 2025-03-08T17:52:09.132Z (about 2 months ago)
- Language: Ruby
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://travis-ci.org/AndrewRadev/modsearch.vim)
## Usage
The plugin exposes a single command, `:Modsearch`, which modifies the last performed search in a particular way, determined by its argument. For instance, after:
``` vim
/foobar
:Modsearch word
```The current search term will now be not `foobar`, but `\`. You can use the `unword` modifier to remove the word limitation.
Currently, the available commands are:
- `word`: Wraps the last search term in word boundaries
- `unword`: Removes word boundaries from the last search term
- `ignore-syntax-comment`: Changes the search to ignore comments
- `ignore-syntax-string`: Changes the search to ignore stringsFor the modifiers that ignore comments and strings, bear in mind that the pattern is invalidated if the buffer is changed. That's because they're implemented by specifically excluding particular line/column pairs.
## Contributing
Pull requests are welcome, but take a look at [CONTRIBUTING.md](https://github.com/AndrewRadev/modsearch.vim/blob/master/CONTRIBUTING.md) first for some guidelines.