From 5039533a91833dc6b1993705e5644cf975a09840 Mon Sep 17 00:00:00 2001 From: 111110100 Date: Tue, 12 May 2026 14:59:51 +1000 Subject: [PATCH] docs: add VIM integration instructions for leaf --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index dd9fad1..cf16e96 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,16 @@ claude "explain Rust lifetimes" | leaf cat TESTING.md | leaf ``` +## Vim Integration +Add the following to your `~/.vimrc` to preview the current Markdown file in a vertical split: + +```vim +" Preview the current Markdown file in a vertical split using leaf +nnoremap md :vertical botright terminal leaf -w % +``` + +Once added, use `\md` to open a live preview. To switch focus back to the Markdown buffer, press `Ctrl+w,h`. + ## Inline Mode Render Markdown directly to **stdout** without the interactive TUI: