Permalink
Browse files

Don't autosave when focus is lost

This is rather annoying when used in conjunction with auto-compiling
IDEs such as Unity.
  • Loading branch information...
1 parent cbc8712 commit b0dc1f08b3db8367c88132f15da6dc9a746ec7c6 @jwhitley committed Nov 28, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 .vimrc
View
3 .vimrc
@@ -489,9 +489,6 @@
autocmd WinEnter * setlocal nocursorline
autocmd WinLeave * setlocal cursorline
- " Save on losing focus, ala TextMate
- autocmd BufLeave,FocusLost * silent! :wa
-
" Override unknown filetypes in certain zsh directories
autocmd BufNewFile,BufRead */.zfunctions/* if &ft == '' || &ft =~# '^\(conf\)$' | set filetype=zsh | endif
autocmd BufNewFile,BufRead */.zlocal/* if &ft == '' || &ft =~# '^\(conf\)$' | set filetype=zsh | endif

0 comments on commit b0dc1f0

Please sign in to comment.