/notion

Notion is a neovim plugin, that allows you to quickly jump to any word within the current viewport.

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Notion

Notion allows you to quickly jump to any word within the current viewport. It was build to be a minimalist alternative to EasyMotion, that avoids most of its hacks by using neovim's floating window feature.

Usage

  1. Execute :NotionJump
  2. Type in the first two characters of the target word
  3. Choose a jump target by hitting the corresponding key

Usage

Install

Prerequisites: Neovim 4.0 + Node.Js + Node Plugin Host

  • vim-plug
    • Plug 'tbo/notion'
  • Pathogen
    • git clone git://github.com/tbo/notion.git ~/.vim/bundle/notion
  • Manual installation:
    • Copy the files to your .vim directory.

Register the plugin with :UpdateRemotePlugins

Example Configuration

" vim-plug boilerplate
call plug#begin('~/.vim/plugged')
Plug 'tbo/notion'
call plug#end()

" Don't delete hidden buffers
set hidden
" Do not wrap lines
set nowrap

hi NotionLabel guifg=red guibg=black ctermfg=red ctermbg=black

nmap <silent> c :NotionJump<CR>

Known Issues & Limitations

  • Does not work in combination with wrap (yet)
  • The amount of jump targets is limited to 65
  • Labels are incorrectly displayed if the buffer is scrolled horizontally, because of #9857