Skip to content

tmke8/vim-searchlabels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

searchlabels.vim

Label mode for search.

Fork of sneak.vim that hooks sneak's label mode into vim's native search.

It's is essentially a light-weight re-implementation of incsearch-easymotion.vim or easymotion's n-character search motion. One shortcoming with those is that they don't have regex support. As this plugin only hooks in at the end of vim's native search, you get vim's full power.

Usage

Just search something with /, and if there are multiple matches visible in your window, labels will appear that allow you to jump directly to any of the matches.

Install

  • vim-plug
    • Plug 'thomkeh/vim-searchlabels', { 'branch': 'main' }
  • Pathogen
    • git clone git://github.com/thomkeh/vim-searchlabels.git ~/.vim/bundle/vim-sneak
  • Manual installation:
    • Copy the files to your .vim directory.

FAQ

Why not use Sneak?

First, I find two characters often too limited for narrowing down my search. Second, I don't see the point of using s/S when I already use //? a lot. Third, if you are in an environment where you don't have your plugins, then using //? fails gracefully (you would just get normal search).

Related

License

Distributed under the MIT license.

About

Easily jump to search results in (n)vim.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published