Giter Site home page Giter Site logo

hlopko / vim-visual-star-search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bronson/vim-visual-star-search

0.0 1.0 0.0 206 KB

Start a * or # search from a visual block

Home Page: http://got-ravings.blogspot.com/2008/07/vim-pr0n-visual-search-mappings.html

Vim Script 100.00%

vim-visual-star-search's Introduction

Visual Star Search

File Search

This plugin allows you to select some text using Vim's visual mode, then hit * and # to search for it elsewhere in the file. For example, hit V, select a strange sequence of characters like "$! $!", and hit star. You'll find all other runs of "$! $!" in the file.

By default, when you hit star while making a visual selection, vim extends the selection to the next word that matches the word under the cursor.

Recursive Search

If you hit <leader>* (\* unless you changed the mapleader), vim recursively vimgreps for the word under the cursor or the visual selection.

If you have already mapped <leader>* then visual star search won't override it. This is useful to set up your own search bindings. For example, to get visual-star-search to use Ag instead of vimgrep, add these two lines to your .vimrc.

History

It was originally derived from a post on Scrooloose's Blog.

Alternatives

  • visualstar
  • vsearch -- Godlygeek's file probably came from the same source and is looking great.
  • nelstrom's fork made some excellent changes. As of Oct 2014, they've been incorporated into this script.

vim-visual-star-search's People

Contributors

bronson avatar glts avatar gmarik avatar guywithnose avatar nelstrom avatar slashfoo avatar wellle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.