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