Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fukamachi/lem-vi-sexp
vim-sexp port for Lem
https://github.com/fukamachi/lem-vi-sexp
Last synced: 13 days ago
JSON representation
vim-sexp port for Lem
- Host: GitHub
- URL: https://github.com/fukamachi/lem-vi-sexp
- Owner: fukamachi
- Created: 2023-08-29T17:43:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-28T12:39:40.000Z (5 months ago)
- Last Synced: 2024-06-28T14:04:02.552Z (5 months ago)
- Language: Common Lisp
- Size: 8.79 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# lem-vi-sexp
[Vim-sexp](https://github.com/guns/vim-sexp) port for Lem.
## Keybindings
The `Leader` key is `\` (backslash) by default. It is configurable to set `leader-key` in `~/.lem/init.lisp`.
```common-lisp
(setf (lem:variable-value 'lem-vi-mode:leader-key) "Space")
```### Normal mode
| Key | Description |
|-----|-------------|
|`=-` | Indent the current top-level COMPOUND FORM. |
|`(` | Move to the nearest open parenthesis. |
|`)` | Move to the nearest close parenthesis. |
|`M-b` | Move backward ELEMENT-wise. |
|`M-w` | Move forward ELEMENT-wise. |
|`Leader @`| Splice the current COMPOUND FORM into its parent. |
|`Leader w`| Wrap the current ELEMENT with `(` and `)` and start insert mode at the beginning. |
|`Leader W`| Wrap the current ELEMENT with `(` and `)` and start insert mode at the end. |
|`Leader i`| Wrap the current COMPOUND FORM with `(` and `)` and start insert mode at the beginning. |
|`Leader I`| Wrap the current COMPOUND FORM with `(` and `)` and start insert mode at the end. |
|`Leader o`| Raise the current COMPOUND FORM to replace the enclosing COMPOUND FORM. |
|`Leader O`| Raise the current ELEMENT to replace the enclosing COMPOUND FORM. |
|`Leader h`| Insert the cursor at the head of the current COMPOUND FORM. |
|`Leader l`| Insert the cursor at the tail of the current COMPOUND FORM. |
|`M-H` | Barf the last form from the current COMPOUND FORM. |
|`M-L` | Slurp the next form into the current COMPOUND FORM. |### Text objects
| Key | Description |
|-----|-------------|
|`af`,`if`|Select COMPOUND FORMS.|
|`aF`,`iF`|Select top-level COMPOUND FORMS.|
|`as`,`is`|Select STRINGS.|
|`ae`,`ie`|Select ELEMENTS.|