Note: This plugin is now part of VimBits suite.
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.
- Vim 9.0 or higher
Install it via vim-plug.
Show instructions
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()
Install using Vim's built-in package manager.
Show instructions
$ 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
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.
-
devdocs.vim - browse documentation from devdocs.io.
-
easyjump.vim - makes code navigation a breeze.
-
scope.vim - fuzzy find anything.
-
autosuggest.vim - live autocompletion for Vim's command line.
-
vimcomplete - enhances autocompletion in Vim.