1 augroup vimrc |
1 augroup vimrc |
2 autocmd! |
2 autocmd! |
3 |
3 |
4 autocmd TermOpen * startinsert |
4 autocmd TermOpen * startinsert |
5 |
5 |
6 autocmd WinLeave * if !pumvisible() | stopinsert | endif |
6 autocmd WinLeave,FocusLost * if !pumvisible() | stopinsert | endif |
|
7 |
|
8 " complement to autoread? |
|
9 autocmd FocusGained * silent! checktime |
7 |
10 |
8 " complement to autowriteall |
11 " complement to autowriteall |
9 autocmd FocusLost * silent! wa |
12 autocmd FocusLost * silent! wa |
10 |
13 |
11 " Make paths when writing, as necessary |
14 " Make paths when writing, as necessary |