diff --git a/gitconfig b/gitconfig index 3b1a982..ebd349e 100644 --- a/gitconfig +++ b/gitconfig @@ -9,3 +9,4 @@ pager = less -F -X [push] default = simple + followTags = true diff --git a/vimrc b/vimrc index 50801f2..cb27b7a 100644 --- a/vimrc +++ b/vimrc @@ -19,7 +19,8 @@ if exists("*vundle#begin") Plugin 'honza/vim-snippets' Plugin 'alfredodeza/coveragepy.vim' Plugin 'tikhomirov/vim-glsl' - Plugin 'ntpeters/vim-better-whitespace' + Plugin 'chrisbra/vim-show-whitespace' + Plugin 'krisajenkins/vim-projectlocal' " All of your Plugins must be added before the following line call vundle#end() " required @@ -71,3 +72,6 @@ au FileType python :imap "Map on Latex files au FileType tex :map :! if [ -f Makefile ]; then; make; else; pdflatex %:t; rm *.aux; rm *.log; fi + +"Highlight chars after column 80 +match ErrorMsg '\%>80v.\+' diff --git a/zsh_functions b/zsh_functions index 8646175..131c88f 100644 --- a/zsh_functions +++ b/zsh_functions @@ -85,6 +85,7 @@ virtual_env_prompt() { } delete-old-archives() { + sudo tarsnap --fsck archives=$(sudo tarsnap --list-archives | sort) del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3))) del_archives=("${(@f)del_archives}") diff --git a/zshrc b/zshrc index 553f0aa..8b1faa0 100644 --- a/zshrc +++ b/zshrc @@ -15,10 +15,11 @@ then fi source ~/.zsh_functions export EDITOR=vim +export SYSTEMD_EDITOR=vim alias sudo='sudo ' alias tasks="ps -u fab" -alias update-grub="grub-mkconfig -o /boot/grub/grub.cfg" +alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg" alias sml2p='/home/fab/.Sync-my-L2P/Sync-my-L2P.run' alias ssh='ssh ' alias ping='ping '