Skip to content

Vim star-search in Visual Mode. Also includes search-and-replace functionality for Normal and Visual modes.

License

Notifications You must be signed in to change notification settings

subnut/visualstar.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4c5bc58 Â· Mar 26, 2021

History

13 Commits
Feb 4, 2021
Mar 26, 2021
Dec 16, 2020
Dec 25, 2020
Dec 25, 2020

Repository files navigation

visualstar.vim

Q. What is this?

A simple plugin to enable * and # searching selected text from Visual mode

Q. But I don't use * or #! I have mapped something else to them!

Seriously?

Well, include the following lines in your .vimrc -

let g:visualstar_mappings_disabled = 1
xmap A <Plug>(VisualstarSearch-*)
xmap B <Plug>(VisualstarSearch-#)

And replace A and B with whatever you have mapped to * and #

Q. Are there any hidden features?

No no, I will not tell you that there is a <Plug>(VisualstarSearchReplace) that can be used in nmap and xmap mappings. 😉

About

Vim star-search in Visual Mode. Also includes search-and-replace functionality for Normal and Visual modes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published