A vim plugin to search current selection with Ack
Use your plugin manager of choice.
- Vundle
- Add
Plugin 'JohanGustafsson91/format-ack-search-from-selection'
- Run
:BundleInstall
- Add
OBS! Ack is required for the plugin to work.
NOTE: The plugin has only been tested on Linux
- Select some text
- Press
AF
to search
:call SearchAckWithFormattedQuery('My search query')
Default is ~/.vim/bundle/format-ack-search-from-selection/plugin/
let g:format_ack_search_from_selection_filepath = 'new/file/path/'
let g:format_ack_search_from_selection_ignore_dirs = ['node_modules', 'dist']
Please feel free to send a pull request
- Add custom key mapping
- Test on Mac
- Test on Windows