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