autocmd!

Junegunn Choi
2015-11-15 14:43:16 +09:00
parent 87ee7c90b7
commit a00732fb7f

@@ -21,8 +21,8 @@ function! s:goyo_leave()
endif endif
endfunction endfunction
autocmd User GoyoEnter nested call <SID>goyo_enter() autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd User GoyoLeave nested call <SID>goyo_leave() autocmd! User GoyoLeave nested call <SID>goyo_leave()
``` ```
## Disabling plugins ## Disabling plugins
@@ -35,7 +35,7 @@ function! s:goyo_enter()
wincmd w wincmd w
endfunction endfunction
autocmd User GoyoEnter call <SID>goyo_enter() autocmd! User GoyoEnter call <SID>goyo_enter()
``` ```
### ZoomWin ### ZoomWin
@@ -53,8 +53,8 @@ function! s:goyo_leave()
command! <Plug>ZoomWin call ZoomWin() command! <Plug>ZoomWin call ZoomWin()
endfunction endfunction
autocmd User GoyoEnter call <SID>goyo_enter() autocmd! User GoyoEnter call <SID>goyo_enter()
autocmd User GoyoLeave call <SID>goyo_leave() autocmd! User GoyoLeave call <SID>goyo_leave()
``` ```
## Ensure `:q` to quit even when Goyo is active ## Ensure `:q` to quit even when Goyo is active
@@ -80,6 +80,6 @@ function! s:goyo_leave()
endif endif
endfunction endfunction
autocmd User GoyoEnter call <SID>goyo_enter() autocmd! User GoyoEnter call <SID>goyo_enter()
autocmd User GoyoLeave call <SID>goyo_leave() autocmd! User GoyoLeave call <SID>goyo_leave()
``` ```