All Projects → lfv89 → Vim Interestingwords

lfv89 / Vim Interestingwords

Licence: gpl-3.0
☀️ A vim plugin for highlighting and navigating through different words in a buffer.

Projects that are alternatives of or similar to Vim Interestingwords

gx-extended.vim
Extend gx to use it beyond just URLs!
Stars: ✭ 23 (-92.46%)
Mutual labels:  vim-plugin
Vim Monokai Tasty
VIM Colour scheme
Stars: ✭ 279 (-8.52%)
Mutual labels:  vim-plugin
Vim Repl
Best REPL environment for Vim
Stars: ✭ 296 (-2.95%)
Mutual labels:  vim-plugin
Vim Rubocop
The Vim RuboCop plugin runs RuboCop and displays the results in Vim
Stars: ✭ 262 (-14.1%)
Mutual labels:  vim-plugin
Vim Wintabs
Modern buffer manager for Vim
Stars: ✭ 268 (-12.13%)
Mutual labels:  vim-plugin
Gen tags.vim
Async plugin for vim and neovim to ease the use of ctags/gtags
Stars: ✭ 288 (-5.57%)
Mutual labels:  vim-plugin
vim-highlighter
Highlight words and expressions
Stars: ✭ 57 (-81.31%)
Mutual labels:  vim-plugin
Dashboard Nvim
vim dashboard
Stars: ✭ 294 (-3.61%)
Mutual labels:  vim-plugin
Textbeat
🎹 plaintext music sequencer and midi shell, with vim playback 🥁
Stars: ✭ 274 (-10.16%)
Mutual labels:  vim-plugin
Mkdx
A vim plugin that adds some nice extra's for working with markdown documents
Stars: ✭ 295 (-3.28%)
Mutual labels:  vim-plugin
Jshint2.vim
Lightweight, customizable and functional Vim plugin for JSHint integration.
Stars: ✭ 265 (-13.11%)
Mutual labels:  vim-plugin
Vim Cool
A very simple plugin that makes hlsearch more useful.
Stars: ✭ 268 (-12.13%)
Mutual labels:  vim-plugin
Diffconflicts
A better Vimdiff Git mergetool
Stars: ✭ 288 (-5.57%)
Mutual labels:  vim-plugin
Completeparameter.vim
Complete parameter after select the completion. Integration with YouCompleteMe(ycm), deoplete, neocomplete.
Stars: ✭ 258 (-15.41%)
Mutual labels:  vim-plugin
Spaceduck
🚀 🦆 An intergalactic space theme for Vim, Terminal, and more!
Stars: ✭ 177 (-41.97%)
Mutual labels:  vim-plugin
roast.vim
An HTTP client for Vim, that can also be used as a REST client.
Stars: ✭ 78 (-74.43%)
Mutual labels:  vim-plugin
Eleline.vim
🌿 Another elegant statusline for vim
Stars: ✭ 283 (-7.21%)
Mutual labels:  vim-plugin
Vim Buffet
IDE-like Vim tabline
Stars: ✭ 304 (-0.33%)
Mutual labels:  vim-plugin
Vimtex
VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.
Stars: ✭ 3,609 (+1083.28%)
Mutual labels:  vim-plugin
Blamer.nvim
A git blame plugin for neovim inspired by VS Code's GitLens plugin
Stars: ✭ 283 (-7.21%)
Mutual labels:  vim-plugin

vim-interestingwords

Word highlighting and navigation throughout out the buffer.

vim-interestingwords highlights the occurrences of the word under the cursor throughout the buffer. Different words can be highlighted at the same time. The plugin also enables one to navigate through the highlighted words in the buffer just like one would through the results of a search.

Screenshot

Installation

The recommended installation is through vim-plug:

Plug 'lfv89/vim-interestingwords'

Usage

  • Highlight with <Leader>k
  • Navigate highlighted words with n and N
  • Clear every word highlight with <Leader>K throughout the buffer

Highlighting Words

<Leader>k will act as a toggle, so you can use it to highlight and remove the highlight from a given word. Note that you can highlight different words at the same time.

Navigating Highlights

With a highlighted word under your cursor, you can navigate through the occurrences of this word with n and N, just as you would if you were using a traditional search.

Clearing (every) Highlight

Finally, if you don't want to toggle every single highlighted word and want to clear all of them, just hit <Leader>K

Configuration

The plugin comes with those default mapping, but you can change it as you like:

let g:interestingWordsDefaultMappings = 0 if to disable default mapping

nnoremap <silent> <leader>k :call InterestingWords('n')<cr>
vnoremap <silent> <leader>k :call InterestingWords('v')<cr>
nnoremap <silent> <leader>K :call UncolorAllWords()<cr>

nnoremap <silent> n :call WordNavigation(1)<cr>
nnoremap <silent> N :call WordNavigation(0)<cr>

Thanks to @gelguy it is now possible to randomise and configure your own colors

To configure the colors for a GUI, add this to your .vimrc:

let g:interestingWordsGUIColors = ['#8CCBEA', '#A4E57E', '#FFDB72', '#FF7272', '#FFB3FF', '#9999FF']

And for a terminal:

let g:interestingWordsTermColors = ['154', '121', '211', '137', '214', '222']

Also, if you want to randomise the colors (applied to each new buffer), add this to your .vimrc:

let g:interestingWordsRandomiseColors = 1

Credits

The idea to build this plugin came from the @stevelosh video's where he shows some pretty cool configurations from his .vimrc. He named this configuration interesting words, and I choose to keep the name for this plugin. The video is on youtube: https://www.youtube.com/watch?v=xZuy4gBghho

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].