From a00732fb7f06b4977fd89b1e0b6a3e74ebdc0e3b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 15 Nov 2015 14:43:16 +0900 Subject: [PATCH] autocmd! --- Customization.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Customization.md b/Customization.md index 1516b2b..f87934d 100644 --- a/Customization.md +++ b/Customization.md @@ -21,8 +21,8 @@ function! s:goyo_leave() endif endfunction -autocmd User GoyoEnter nested call goyo_enter() -autocmd User GoyoLeave nested call goyo_leave() +autocmd! User GoyoEnter nested call goyo_enter() +autocmd! User GoyoLeave nested call goyo_leave() ``` ## Disabling plugins @@ -35,7 +35,7 @@ function! s:goyo_enter() wincmd w endfunction -autocmd User GoyoEnter call goyo_enter() +autocmd! User GoyoEnter call goyo_enter() ``` ### ZoomWin @@ -53,8 +53,8 @@ function! s:goyo_leave() command! ZoomWin call ZoomWin() endfunction -autocmd User GoyoEnter call goyo_enter() -autocmd User GoyoLeave call goyo_leave() +autocmd! User GoyoEnter call goyo_enter() +autocmd! User GoyoLeave call goyo_leave() ``` ## Ensure `:q` to quit even when Goyo is active @@ -80,6 +80,6 @@ function! s:goyo_leave() endif endfunction -autocmd User GoyoEnter call goyo_enter() -autocmd User GoyoLeave call goyo_leave() +autocmd! User GoyoEnter call goyo_enter() +autocmd! User GoyoLeave call goyo_leave() ``` \ No newline at end of file