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

https://github.com/mityu/vim-fall-modal

Modal editing support for fall.vim
https://github.com/mityu/vim-fall-modal

denops fuzzy-finder neovim vim vim-fall

Last synced: 8 months ago
JSON representation

Modal editing support for fall.vim

Awesome Lists containing this project

README

          

# fall-modal.vim

Add modal editing functionality to [fall.vim](https://github.com/vim-fall/fall.vim).
See `doc/fall-modal.txt` for the full description of this plugin.

## Basic configuration

Setup fall-modal.vim using the built-in configuration. Write this in your .vimrc:

```vim
augroup vimrc-fall-modal
autocmd!
autocmd User FallModalSetup call fall_modal#default#setup()
augroup END
```

This will introduce "normal" and "insert" mode.
The default mode is "normal" mode, in other words, fall-modal.vim will be the "normal" mode when fall.vim starts.

List of mappings in each mode is here:

- "normal" mode:

| Key | Description |
|:--------|:------------|
| q | Quit fall.vim. |
| i | Change mode to "insert". |
| j | `(fall-list-next)` |
| k | `(fall-list-prev)` |
| gg | `(fall-list-first)` |
| G | `(fall-list-last)` |
| `` | Accept item and apply default action to the item. |
| a | `(fall-action-select)` |
| m | `(fall-select)` |
| * | `(fall-select-all)` |
| ? | `(fall-help)` |
| `` | `(fall-preview-next:scroll)` |
| `` | `(fall-preview-prev:scroll)` |
| u | Undo prompt. `fall_modal#input#undo_prompt()` |
| `` | Redo prompt. `fall_modal#input#redo_prompt()` |

- "insert" mode:

| Key | Description |
|:--------|:------------|
| `` | Change mode to "normal". |
| `` | Change mode to "normal". |
| `` | Change mode to "normal" with discarding prompt changes. |
| `` | `(fall-list-next)` |
| `` | `(fall-list-prev)` |

You can also refer to `:h fall-modal-default-config` about this built-in configuration.

---
See `:h fall-modal-example` for more advanced examples.