Browse Source

Set terminal tabstop and add vim sudo hack shortcut.

master
Daniel Sissom 5 years ago
parent
commit
c076cda8d3
Signed by untrusted user who does not match committer: djsissom GPG Key ID: 2C30FFB796852389
2 changed files with 4 additions and 0 deletions
  1. + 3
    - 0
      vim/vimrc
  2. + 1
    - 0
      zsh/zshrc

+ 3
- 0
vim/vimrc

@ -75,6 +75,9 @@ noremap # #zz
noremap g* g*zz noremap g* g*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 syntax spell toplevel
autocmd FileType plaintex,tex,latex set tw=80 autocmd FileType plaintex,tex,latex set tw=80
autocmd FileType pug,jade set tw=80 autocmd FileType pug,jade set tw=80

+ 1
- 0
zsh/zshrc

@ -128,6 +128,7 @@ fi
export GPG_TTY=$(tty) # Fix GPG pin prompt bug with git export GPG_TTY=$(tty) # Fix GPG pin prompt bug with git
export SDL_VIDEO_FULLSCREEN_HEAD=3 export SDL_VIDEO_FULLSCREEN_HEAD=3
setopt HIST_IGNORE_SPACE setopt HIST_IGNORE_SPACE
tabs 4 # Set default tab stop at 4 spaces
if [[ $HOST == motoko ]]; then if [[ $HOST == motoko ]]; then
export TERM=xterm-256color export TERM=xterm-256color

Loading…
Cancel
Save