From c076cda8d3150355dfa62723f82e33b685f701b0 Mon Sep 17 00:00:00 2001 From: Daniel Sissom Date: Wed, 10 Jul 2019 15:22:47 -0500 Subject: [PATCH] Set terminal tabstop and add vim sudo hack shortcut. --- vim/vimrc | 3 +++ zsh/zshrc | 1 + 2 files changed, 4 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 90a6ea8..62ec504 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -75,6 +75,9 @@ noremap # #zz noremap g* g*zz noremap g# g#zz +" Allow saving files with sudo after starting vim +cmap w!! w !sudo tee > /dev/null % + autocmd FileType plaintex,tex,latex syntax spell toplevel autocmd FileType plaintex,tex,latex set tw=80 autocmd FileType pug,jade set tw=80 diff --git a/zsh/zshrc b/zsh/zshrc index 96dd55c..52c1ca3 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -128,6 +128,7 @@ fi export GPG_TTY=$(tty) # Fix GPG pin prompt bug with git export SDL_VIDEO_FULLSCREEN_HEAD=3 setopt HIST_IGNORE_SPACE +tabs 4 # Set default tab stop at 4 spaces if [[ $HOST == motoko ]]; then export TERM=xterm-256color