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
- Host: GitHub
- URL: https://github.com/mityu/vim-fall-modal
- Owner: mityu
- License: mit
- Created: 2025-09-12T12:25:01.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-10-02T23:10:30.000Z (8 months ago)
- Last Synced: 2025-10-03T01:17:56.692Z (8 months ago)
- Topics: denops, fuzzy-finder, neovim, vim, vim-fall
- Language: Vim Script
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.