258 |
258 |
259 " Autocmds {{{ |
259 " Autocmds {{{ |
260 augroup vimrc |
260 augroup vimrc |
261 autocmd! |
261 autocmd! |
262 |
262 |
263 autocmd WinLeave * stopinsert |
263 autocmd WinLeave * if !pumvisible() | stopinsert | endif |
264 |
264 |
265 " set and load a session based on servername |
265 " set and load a session based on servername |
266 autocmd VimEnter * nested call vimrc#AutoSessionCheck() |
266 autocmd VimEnter * nested call vimrc#AutoSessionCheck() |
267 |
267 |
268 " complement to autowriteall |
268 " complement to autowriteall |