Giter Club home page Giter Club logo

vim-highlight's Introduction

Highlight

[VERSION: 0.1]

Demo

Higlight Registry Example

Overview

Builds a custom registry for manipulating highlights. In particular, I found it necessary to search for different keywords without overriding previous searches; that is, I wanted to be able to continue adding more words to a search without having to keep track of which words I've already searched for.

Refer to doc/ for complete instructions on use.

Installation

I prefer using vim-plug for plugin management as follows:

Plug 'jrpotter/vim-highlight'

Follow use according to plugin manager you use or optionally copy plugin/highlight.vim from this repo into $VIM_DIR/plugin.

Usage

Put your cursor over a given word and press & to append the <cword> under the cursor into the " register by default. Navigating from this highlighted word to other occurrences are then done by n and N to move forward and backward respectively. To append another <cword> into the register, move other another cursor and press &. Now pressing n or N will navigate to occurrences of both words.

To clear out this register, just press c&. If you want to keep these words highlighted but begin another search, you can use another register. By default, the search is replaced by said register. So, if after using the default register you place your cursor over another <cword> and press "1&, you'll begin another search and navigate accordingly. To switch back to the original register, press y&.

To remove a selected word, press d&. Note each [c|d|y]& can be prepended with a register as well.

Overloading of *, #, g*, and g# is also done.

Lastly, the numeral registers are highlighted different colors but by default none of the other registers are. Instead, they are initialized with the g:highlight_register_default_color variable, which starts with value "Yellow."

vim-highlight's People

Contributors

jrpotter avatar

Watchers

 avatar  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.