docs: add VIM configuration instructions for leaf#120
Closed
111110100 wants to merge 2 commits into
Closed
Conversation
Added instructions for using leaf with VIM, including keybindings. Signed-off-by: 111110100 <elomibao@gmail.com>
RivoLink
reviewed
May 11, 2026
| cat TESTING.md | leaf | ||
| ``` | ||
|
|
||
| ## Using with VIM |
Owner
There was a problem hiding this comment.
Maybe this is more readable
Vim Integration
Add the following to your ~/.vimrc to preview the current Markdown file in a vertical split:
" Preview the current Markdown file in a vertical split using leaf
nnoremap <Leader>md :vertical botright terminal leaf -w %<CR>Once added, use \md to open a live preview. To switch focus back to the Markdown buffer, press Ctrl+w,h.
Owner
|
Hi @111110100 I made some review notes:
|
Updated VIM integration instructions for leaf preview. Signed-off-by: 111110100 <elomibao@gmail.com>
Owner
|
Thank you. |
Contributor
Author
|
I could not see that option. I'm not sure if it's enabled. I'll just close this PR and create a new PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added instructions for using leaf with VIM, including keybindings.