Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
doc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Build Status

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:

/foobar
:Modsearch word

The current search term will now be not foobar, but \<foobar\>. 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 strings

For 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 first for some guidelines.

About

A command that lets you change the previous search in predefined ways

Resources

License

Releases

No releases published
You can’t perform that action at this time.