This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/evil-snipe/README.md

60 lines
2.1 KiB
Markdown
Raw Normal View History

2015-02-26 19:15:57 +00:00
# evil-snipe contribution layer for Spacemacs
![logo](img/Cat_With_Rifle.jpg)
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [evil-snipe contribution layer for Spacemacs](#evil-snipe-contribution-layer-for-spacemacs)
- [Description](#description)
- [Improved f and t searches](#improved-f-and-t-searches)
- [Improved precision search](#improved-precision-search)
- [Install](#install)
- [Key bindings](#key-bindings)
<!-- markdown-toc end -->
## Description
The package [evil-snipe](https://github.com/hlissner/evil-snipe)
- enables more efficient searches with `f/F/t/T`.
- adds a new, more precise search with `s/S`
### Improved f and t searches
2015-02-28 02:50:41 +00:00
Instead of repeating searches with `,/;` you can just press `f/t` again to
continue the search (`F/T` to go the opposite direction).
Evil-snipe also adds several scope options for searches (set
`evil-snipe-scope` and `evil-snipe-repeat-scope` to one of these, the default
value is `buffer`):
Value | Description
-----------------|------------------------------------------------------------
buffer | search in the rest of the buffer after the cursor (`vim-sneak` behavior)
line | search in the current line after the cursor (`vim-seek` behavior)
visible | search in the rest of the visible buffer only
whole-line | same as `line`, but highlight matches on either side of cursor
whole-buffer | same as `buffer`, but highlight *all* matches in buffer
whole-visible | same as 'visible, but highlight *all* visible matches in buffer
If you do not want to replace the regular `f/F/t/T` behavior, just
remove this line from `evil-snipe/packages.el`:
`(evil-snipe-replace-evil)`
2015-02-26 19:15:57 +00:00
### Improved precision search
2015-02-28 02:50:41 +00:00
Now you can press `s/S` to search forward/backwards in the buffer with two chars.
This greatly improves the precision of the search and is much more useful than it
might sound at first.
2015-02-26 19:15:57 +00:00
## Install
To use this contribution add it to your `~/.spacemacs`
```elisp
(setq-default dotspacemacs-configuration-layers '(evil-snipe))
```
## Key bindings
2015-02-28 02:50:41 +00:00
TODO