vim: save when losing focus
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 17 Sep 2010 11:02:02 -0400 |
parents |
becbb11a1893
|
children |
0ad4a6fc16d9
9841a762fa2d
|
branches/tags |
(none) |
files |
bootstrap.sh vim/.vimrc |
Changes
--- a/bootstrap.sh Thu Sep 16 08:40:23 2010 -0400
+++ b/bootstrap.sh Fri Sep 17 11:02:02 2010 -0400
@@ -45,6 +45,7 @@
ln -s "$HOME/lib/dotfiles/.hgrc" "$HOME/.hgrc"
ln -s "$HOME/lib/dotfiles/vim/.vim" "$HOME/.vim"
ln -s "$HOME/lib/dotfiles/vim/.vimrc" "$HOME/.vimrc"
+ln -s "$HOME/lib/dotfiles/.screenrc" "$HOME/.screenrc"
rm ~/.zshrc
rm ~/.bashrc
--- a/vim/.vimrc Thu Sep 16 08:40:23 2010 -0400
+++ b/vim/.vimrc Fri Sep 17 11:02:02 2010 -0400
@@ -227,3 +227,6 @@
" Shouldn't need shift
nnoremap ; :
+" Save when losing focus
+au FocusLost * :wa
+