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> 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 " 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 " use \ tf to format a buffer as tofu / terraform
nmap <leader>tf <cmd>% !tofu fmt -no-color -<cr> nmap <leader>tf <cmd>% !tofu fmt -no-color -<cr>

View File

@@ -3,11 +3,11 @@ HISTSIZE=1000
SAVEHIST=1000 SAVEHIST=1000
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
export EDITOR=nvim export EDITOR=vim
export VISUAL=${EDITOR} export VISUAL=${EDITOR}
export PAGER=less export PAGER=less
export LESS=RX # R for ANSI color sequences, X to not clear screen on exit export LESS=RX # R for ANSI color sequences, X to not clear screen on exit
export XDG_CONFIG_HOME=${HOME}/.config
export FZF_DEFAULT_OPTS="--multi --height=40% --layout=reverse" export FZF_DEFAULT_OPTS="--multi --height=40% --layout=reverse"
export GOPATH=~/go export GOPATH=~/go