From 5340c91acedb1a9c64933083ac4a12b9d9eaf0ed Mon Sep 17 00:00:00 2001 From: Rob Muhlestein Date: Fri, 30 Jun 2023 21:05:39 -0400 Subject: [PATCH] disable shfmt until it stops fucking up my saves --- vim/.vimrc | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 27b6279..625aa4a 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -275,6 +275,7 @@ endif " format shell on save if has("eval") " vim-tiny detection " TODO check for shfmt and shellcheck before defining +" FIXME stop from blowing away file when there is shell error fun! s:FormatShell() let l:pos = getcurpos() silent execute '%!shfmt' @@ -333,6 +334,7 @@ au bufnewfile,bufRead *gitconfig set filetype=gitconfig au bufnewfile,bufRead /tmp/psql.edit.* set syntax=sql au bufnewfile,bufRead *.go set spell spellcapcheck=0 au bufnewfile,bufRead commands.yaml set spell +au bufnewfile,bufRead *.txt set spell "fix bork bash detection if has("eval") " vim-tiny detection @@ -373,18 +375,18 @@ map :set fdm=indent nmap 2 :set pastei " disable arrow keys (vi muscle memory) -noremap :echoerr "Umm, use k instead" -noremap :echoerr "Umm, use j instead" -noremap :echoerr "Umm, use h instead" -noremap :echoerr "Umm, use l instead" -inoremap - inoremap - inoremap - inoremap -" +" noremap :echoerr "Umm, use k instead" +" noremap :echoerr "Umm, use j instead" +" noremap :echoerr "Umm, use h instead" +" noremap :echoerr "Umm, use l instead" +" inoremap +" inoremap +" inoremap +" inoremap + " better use of arrow keys, number increment/decrement -nnoremap -nnoremap +" nnoremap +" nnoremap " Better page down and page up noremap