.config/nvim/plugin/vimrc/autocmds.vim

changeset 1050
6fb014427493
parent 1025
9dfc1a5a52dc
child 1075
3b88450bda15
equal deleted inserted replaced
1049:3f01468ffc32 1050:6fb014427493
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

mercurial