An open API service indexing awesome lists of open source software.

https://github.com/mityu/vim-cmdhistory

Command-line history selector plugin for Vim9.
https://github.com/mityu/vim-cmdhistory

vim9

Last synced: about 1 month ago
JSON representation

Command-line history selector plugin for Vim9.

Awesome Lists containing this project

README

          

# cmdhistory.vim

This is a Vim plugin to select command-line history on command-line and command-line window.

## Requirements

- Vim 9.0 or later.
- Neovim v0.11.0 or later.

## Example configuration

In your .vimrc:

```vim
cnoremap call cmdhistory#select()

augroup setup-cmdhistory-plugin-for-cmdwin
autocmd!
autocmd CmdWinEnter * nnoremap / call cmdhistory#select()
autocmd User cmdhistory-initialize call s:setup_cmdhistory()
augroup END

function s:setup_cmdhistory()
" Set plugin default mappings.
call cmdhistory#set_default_mappings()

" Accept the present item with key.
call cmdhistory#map_action('', ['accept'])
endfunction
```