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('.', '$'))