vim + zk setup

This commit is contained in:
Jason Swank
2025-12-27 20:12:44 +00:00
parent 56530d7f39
commit 1669c95044
2 changed files with 4 additions and 3 deletions

View File

@@ -39,7 +39,8 @@ au FileType python setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4
iab idate <c-r>=strftime("%Y-%m-%d")<cr>
" use \ toc to insert a table of contents for markdown from the current line to EOF
nmap <leader>toc <cmd>.put =execute('.,$write !gh-md-toc --hide-header --hide-footer')<cr>
" nmap <leader>toc <cmd>.put =execute('.,$write !gh-md-toc --hide-header --hide-footer')<cr>
nmap <leader>toc :put =system('gh-md-toc --hide-header --hide-footer', getline('.', '$'))<cr>
" use \ tf to format a buffer as tofu / terraform
nmap <leader>tf <cmd>% !tofu fmt -no-color -<cr>