Save on focus lost
b03365eb9af5793942cc540cb5daacb8fe119884
1 parent
f2ed0950
.vimrc
+3 -0
| 77 | 77 | let col = col('.') - 1 |
|
| 78 | 78 | return !col || getline('.')[col - 1] =~ '\s' |
|
| 79 | 79 | endfunction |
|
| 80 | 80 | endif |
|
| 81 | 81 | ||
| 82 | + | " Save on focus lost |
|
| 83 | + | au FocusLost * :wa |
|
| 84 | + | ||
| 82 | 85 | " Per file-type indentation |
|
| 83 | 86 | au FileType haskell set sts=4 sw=4 expandtab |
|
| 84 | 87 | au FileType javascript set sts=4 sw=4 expandtab |
|
| 85 | 88 | au FileType go set ts=4 sw=4 noexpandtab |
|
| 86 | 89 | au FileType c,cpp set sw=4 noexpandtab |