258:599c509f134c | 259:3ea35d31175b |
---|---|
268 | 268 |
269 set backupdir=$MYVIM/var/backup//,. | 269 set backupdir=$MYVIM/var/backup//,. |
270 set directory=$MYVIM/var/tmp//,. | 270 set directory=$MYVIM/var/tmp//,. |
271 | 271 |
272 set backup | 272 set backup |
273 set autowrite | 273 set autowriteall |
274 | 274 |
275 if has('persistent_undo') | 275 if has('persistent_undo') |
276 set undofile | 276 set undofile |
277 set undodir=$MYVIM/var/undo//,. | 277 set undodir=$MYVIM/var/undo//,. |
278 end | 278 end |
280 | 280 |
281 | 281 |
282 " Autocmds {{{ | 282 " Autocmds {{{ |
283 augroup vimrc | 283 augroup vimrc |
284 autocmd! | 284 autocmd! |
285 | |
286 autocmd FocusLost * silent! wa | |
285 | 287 |
286 " you have to go out of your way to make this stick | 288 " you have to go out of your way to make this stick |
287 autocmd BufNewFile,BufRead * setlocal formatoptions-=ro | 289 autocmd BufNewFile,BufRead * setlocal formatoptions-=ro |
288 | 290 |
289 autocmd FileType text setlocal textwidth=78 | 291 autocmd FileType text setlocal textwidth=78 |