Skip to content

docs: add VIM configuration instructions for leaf#120

Closed
111110100 wants to merge 2 commits into
RivoLink:mainfrom
111110100:patch-1
Closed

docs: add VIM configuration instructions for leaf#120
111110100 wants to merge 2 commits into
RivoLink:mainfrom
111110100:patch-1

Conversation

@111110100
Copy link
Copy Markdown
Contributor

Added instructions for using leaf with VIM, including keybindings.

Added instructions for using leaf with VIM, including keybindings.

Signed-off-by: 111110100 <elomibao@gmail.com>
Comment thread README.md Outdated
cat TESTING.md | leaf
```

## Using with VIM
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@RivoLink
Copy link
Copy Markdown
Owner

Hi @111110100
Thanks for your input, I really appreciate it.

I made some review notes:

  • I suggest a more readable doc.
  • Can you use lowercase in your commit message for the "add" word?

Updated VIM integration instructions for leaf preview.

Signed-off-by: 111110100 <elomibao@gmail.com>
@111110100 111110100 changed the title docs: Add VIM configuration instructions for leaf docs: add VIM configuration instructions for leaf May 11, 2026
Copy link
Copy Markdown
Contributor Author

@111110100 111110100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated commit #120

@RivoLink
Copy link
Copy Markdown
Owner

Thank you.
Can you squash it into a single commit?

@111110100 111110100 marked this pull request as draft May 12, 2026 04:39
@111110100
Copy link
Copy Markdown
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.

@111110100 111110100 closed this May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants