From fd47330e6d9a2a24fd0a644315659cf6e2c9aab0 Mon Sep 17 00:00:00 2001 From: Jason Swank <632526+jswank@users.noreply.github.com> Date: Tue, 13 Jan 2026 13:05:08 -0500 Subject: [PATCH] vim: add ctrl-b to create backticks --- vim/.config/vim/vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/.config/vim/vimrc b/vim/.config/vim/vimrc index a90058b..4b20b28 100644 --- a/vim/.config/vim/vimrc +++ b/vim/.config/vim/vimrc @@ -69,6 +69,9 @@ au FileType markdown setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4 wra " typing idate inserts the current date iab idate =strftime("%Y-%m-%d") +" insert triple backticks for markdown code blocks with Ctrl-b +inoremap ``````O + " use \ toc to insert a table of contents for markdown from the current line to EOF " nmap toc .put =execute('.,$write !gh-md-toc --hide-header --hide-footer') nmap toc :put =system('gh-md-toc --hide-header --hide-footer --indent=4', getline('.', '$'))