aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorCamil Staps2016-05-18 17:59:35 +0200
committerCamil Staps2016-11-30 19:11:43 +0100
commitb3a30fa3a6376dad181cfbbdf518d184cc8764b6 (patch)
tree45dd1b8dbeddf3006e31c0500a285a9dcfcee400 /vim
parentVim: fix commands; highlighting of spelling mistakes (diff)
Vim: source e.g. .vimrc on writing; thanks @dopefishh
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc.symlink5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink
index b41d132..d80bbb7 100644
--- a/vim/vimrc.symlink
+++ b/vim/vimrc.symlink
@@ -22,6 +22,11 @@ Plugin 'camilstaps/syntastic' " Syntastic
call vundle#end()
" End Vundle
+" Source some special files on writing
+autocmd! bufwritepost .vimrc source %
+autocmd! bufwritepost .bashrc !source %
+autocmd! bufwritepost .Xresources !xrdb -merge %
+
" Common settings
set tabstop=4 shiftwidth=4
set cc=80