All Projects → lambdalisue → lista.nvim

lambdalisue / lista.nvim

Licence: MIT license
Neovim/Vim buffer filtering plugin

Programming Languages

python
139335 projects - #7 most used programming language
Batchfile
5799 projects
Makefile
30231 projects
Vim Script
2826 projects
shell
77523 projects

lista

Join the chat at https://gitter.im/lista-nvim/Lobby Travis CI Coverage Status Code Quality Version 1.0.0-dev Support Neovim 0.1.6 or above Support Vim 8.0 or above MIT License Doc

Introductions

asciicast

lista is a plugin to filter content lines and jump to where you want.

Install

Install it with your favorite plugin manager.

Plug 'lambdalisue/lista.nvim'

Install lambdalisue/vim-rplugin as well if you want to make it available on Vim 8.0.

Usage

Execute :Lista or :ListaCursorWord and use the following builtin mappings

Key Description
<CR> Accept the input and jump to the selected line
<C-J> Accept the input and jump to the selected line
<C-M> Accept the input and jump to the selected line
<Esc> Cancel the input and return to the original line
<C-[> Cancel the input and return to the original line
<BS> Delete a character before the cursor
<C-H> Delete a character before the cursor
<C-W> Delete a word before the cursor
<Del> Delete a character under the cursor
<Left> Move a cursor left
<S-Left> Move a cursor one word left
<C-Left> Move a cursor one word left
<Right> Move a cursor right
<S-Right> Move a cursor one word left
<C-Right> Move a cursor one word left
<Home> Move a cursor to the head
<End> Move a cursor to the tail
<Up> Recall previous command-line from history that matches pattern in front of the cursor
<Down> Recall next command-line from history that matches pattern in front of the cursor
<S-Up> Recall previous command-line from history
<S-Down> Recall next command-line from history
<C-P> Recall previous command-line from history
<C-N> Recall next command-line from history
<PageUp> Select a previous line of the buffer
<PageDown> Select a next line of the buffer
<S-Tab> Select a previous line of the buffer
<Tab> Select a next line of the buffer
<C-T> Select a previous line of the buffer
<C-G> Select a next line of the buffer
<C-R> Insert the contents of a register or object under the cursor as if typed
<C-V> Start to input a control character
<C-K> Start to input a digraph
<Insert> Toggle insert/replace mode
<C-^> Switch a current matcher
<C-6> Switch a current matcher
<C-_> Switch ignorecase
<C--> Switch ignorecase

I personally assign the command to # and g# like:

nnoremap # :<C-u>Lista<CR>
nnoremap g# :<C-u>ListaCursorWord<CR>

If you prefer to use <C-n>/<C-p> to select candidate, use

let g:lista#custom_mappings = [
      \ ['<C-f>', '<Left>'],
      \ ['<C-b>', '<Right>'],
      \ ['<C-a>', '<Home>'],
      \ ['<C-e>', '<End>'],
      \ ['<C-d>', '<Del>'],
      \ ['<C-P>', '<lista:select_previous_candidate>', 'noremap'],
      \ ['<C-N>', '<lista:select_next_candidate>', 'noremap'],
      \ [';', 'pinkyless#stickyshift#enter(";")', 'expr noremap'],
      \]

See also

This plugin has partially forked from or inspired by the following plugins.

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].