Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junegunn/vim-slash
Enhancing in-buffer search experience
https://github.com/junegunn/vim-slash
Last synced: about 1 month ago
JSON representation
Enhancing in-buffer search experience
- Host: GitHub
- URL: https://github.com/junegunn/vim-slash
- Owner: junegunn
- License: mit
- Created: 2016-10-19T05:21:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-06T03:34:13.000Z (over 1 year ago)
- Last Synced: 2024-11-16T02:44:43.824Z (3 months ago)
- Language: Vim script
- Homepage:
- Size: 18.6 KB
- Stars: 332
- Watchers: 7
- Forks: 33
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
vim-slash
=========vim-slash provides a set of mappings for enhancing in-buffer search experience
in Vim.- Automatically clears search highlight when cursor is moved
- Improved star-search (visual-mode, highlighting without moving)Installation
------------Using [vim-plug](https://github.com/junegunn/vim-plug):
```vim
Plug 'junegunn/vim-slash'
```Comparison with vim-oblique
---------------------------vim-slash is a smaller alternative to [vim-oblique][ob]. vim-oblique depends
on [a reimplementation of Vim command-line interface][pcl] which is incomplete
and has a number of issues that cannot be easily fixed. vim-oblique is also
much slower than the native /-search when working with large files.Many features of vim-oblique are missing in vim-slash, but [frankly, my dear,
I don't give a damn][damn].[ob]: https://github.com/junegunn/vim-oblique
[pcl]: https://github.com/junegunn/vim-pseudocl
[damn]: https://en.wikipedia.org/wiki/Frankly,_my_dear,_I_don%27t_give_a_damnCustomization
-------------#### `zz` after search
Places the current match at the center of the window.
```vim
noremap (slash-after) zz
```#### Blinking cursor after search using Vim 8 timer
```vim
if has('timers')
" Blink 2 times with 50ms interval
noremap (slash-after) slash#blink(2, 50)
endif
```You can prepend `zz` to the expression: `'zz'.slash#blink(2, 50)`