Skip to content

girishji/fFtT.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Vim 9.0 or higher

Installation

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

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.

About

More accurate f, F, t, T navigation in Vim.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published