Giter VIP home page Giter VIP logo

vim-find-highlight's Introduction

Vim Find Highlight

showcase

What does it do?

  • For people who use vim with vscode. the find command is pretty useful to go quickly to a specific word by typing f [some character in the word] in normal mode.

  • this becomes a problem when there are multiple words in the line that contain the same characters that you use with the find command.

    • <cursorPos> const name = "tsr" Note that you can only reach the string "tsr" with one jump by using the command f r.
  • The main goal of the extension is to highlight a character in every word such that when using this character with the find command, you reach the word with as minimal jumps as possible.

  • This isn't always possible if the line contains repeated words. the extension can be configured to color the character with another color to indicate that the word cannot be reached with only one jump

    • Example of such case: <cursorPos> test test
    • In this case the extension would highlight the character that enables you to go to the second test as quickly as possible. Here the character e will be highlighted (you need 2 jumps) instead of t (you need 3 jumps).

Configuration

  • The configuration is simple

  • Go to settings.json and set the following

    1. "vimFindHighlight.charPrimaryColor": "green" // the color that will be used if the word can be reached with one jump

    2. "vimFindHighlight.charSecondaryColor": "red" // the color that will be used if the word can not be reached with one jump

    3. "vimFindHighlight.charFontWeight": "600" // font weight of the highlighted character

    4. "vimFindHighlight.enableUnderline": true // underline the highlighted characters

Links

vim-find-highlight's People

Contributors

magdyamr542 avatar

Stargazers

 avatar

Watchers

 avatar

vim-find-highlight's Issues

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.