Home

Awesome

Note: This plugin is now part of VimBits suite.

fFtT.vim

Characters that are reachable with a single jump are highlighted, while others are dimmed. This enhancement enhances the accuracy of navigation using f, F, t, and T commands. Moreover, you can prefix the command with a numerical [count] (e.g., 3f), which will exclusively highlight the [count]'th occurrence (third in this instance) of a character to the right of the cursor, while dimming the others.

This plugin does not alter Vim operators or commands. It solely focuses on highlighting relevant characters without making any changes to the default key mappings. The code consists of less than 100 lines, with explanatory comments.

Requirements

Installation

Install it via vim-plug.

<details><summary><b>Show instructions</b></summary> <br>

Using vim9 script:

vim9script
plug#begin()
Plug 'girishji/fFtT.vim'
plug#end()

Using legacy script:

call plug#begin()
Plug 'girishji/fFtT.vim'
call plug#end()
</details>

Install using Vim's built-in package manager.

<details><summary><b>Show instructions</b></summary> <br>
$ mkdir -p $HOME/.vim/pack/downloads/opt
$ cd $HOME/.vim/pack/downloads/opt
$ git clone https://github.com/girishji/fFtT.vim.git

Add the following to your $HOME/.vimrc file.

packadd fFtT.vim
</details>

Configuration

The appearance of characters that are unreachable within one jump is determined by the highlight group FfTtSubtle, which is linked to the Comment group by default.

Other Plugins to Enhance Your Workflow

  1. devdocs.vim - browse documentation from devdocs.io.

  2. easyjump.vim - makes code navigation a breeze.

  3. scope.vim - fuzzy find anything.

  4. autosuggest.vim - live autocompletion for Vim's command line.

  5. vimcomplete - enhances autocompletion in Vim.