From 1669c950447254831915bca9bfcaa7014d3a7a8b Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Sat, 27 Dec 2025 20:12:44 +0000 Subject: [PATCH] vim + zk setup --- vim/.vimrc | 3 ++- zsh/.zshenv | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 06d9de4..f42a4e0 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -39,7 +39,8 @@ au FileType python setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4 iab idate =strftime("%Y-%m-%d") " 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 =execute('.,$write !gh-md-toc --hide-header --hide-footer') +nmap toc :put =system('gh-md-toc --hide-header --hide-footer', getline('.', '$')) " use \ tf to format a buffer as tofu / terraform nmap tf % !tofu fmt -no-color - diff --git a/zsh/.zshenv b/zsh/.zshenv index 24d9eb3..eb8cfda 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -3,11 +3,11 @@ HISTSIZE=1000 SAVEHIST=1000 export LANG=en_US.UTF-8 -export EDITOR=nvim +export EDITOR=vim export VISUAL=${EDITOR} export PAGER=less 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 GOPATH=~/go