Skip to content

GitPaulo/vim-line-find-highlight

Repository files navigation

Vim Line Find Highlight

Fork of vim-find-highlight by AmrMetwally, maintained by GitPaulo.

Inspired by vim quick-scope. Highlights the optimal character in each word on the current line so you can reach it with the fewest Vim f / F jumps.

preview.mov

Includes quick access themes:

image

How It Works

  • For each word on the line, the extension picks the character reachable in the fewest jumps using Vim's f motion.
  • Characters reachable in one jump are shown in the primary style.
  • Characters that require multiple jumps are shown in the secondary style.

Settings

Setting Default Description
charPrimaryColor "#DC322F" Background color for single-jump characters (hex, empty to disable)
charSecondaryColor "#B58900" Background color for multi-jump characters (hex, empty to disable)
charPrimaryForegroundColor "#FFFFFF" Text color for single-jump characters (hex, empty to disable)
charSecondaryForegroundColor "#000000" Text color for multi-jump characters (hex, empty to disable)
enableBold true Bold highlighted characters
enableUnderline true Underline highlighted characters
enableAutoHighlight true Highlight automatically on cursor move

All settings are prefixed with vimLineFindHighlight.. Colors should be hex values (e.g. #FF0000). Foreground colors may be overridden by your theme's token colorization.

Commands

Command ID
Toggle Auto Highlight vimLineFindHighlight.toggleAutoHighlight
Highlight Characters (manual) vimLineFindHighlight.highlightCharacters
Select Color Theme vimLineFindHighlight.selectColorTheme

Commands can be remapped via VS Code keybindings or VSCodeVim config.

About

Highlights the optimal character in each word for Vim's f/F motion

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors