mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-18 00:03:42 -05:00
autocmd!
@@ -21,8 +21,8 @@ function! s:goyo_leave()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
autocmd User GoyoEnter nested call <SID>goyo_enter()
|
||||
autocmd User GoyoLeave nested call <SID>goyo_leave()
|
||||
autocmd! User GoyoEnter nested call <SID>goyo_enter()
|
||||
autocmd! User GoyoLeave nested call <SID>goyo_leave()
|
||||
```
|
||||
|
||||
## Disabling plugins
|
||||
@@ -35,7 +35,7 @@ function! s:goyo_enter()
|
||||
wincmd w
|
||||
endfunction
|
||||
|
||||
autocmd User GoyoEnter call <SID>goyo_enter()
|
||||
autocmd! User GoyoEnter call <SID>goyo_enter()
|
||||
```
|
||||
|
||||
### ZoomWin
|
||||
@@ -53,8 +53,8 @@ function! s:goyo_leave()
|
||||
command! <Plug>ZoomWin call ZoomWin()
|
||||
endfunction
|
||||
|
||||
autocmd User GoyoEnter call <SID>goyo_enter()
|
||||
autocmd User GoyoLeave call <SID>goyo_leave()
|
||||
autocmd! User GoyoEnter call <SID>goyo_enter()
|
||||
autocmd! User GoyoLeave call <SID>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 <SID>goyo_enter()
|
||||
autocmd User GoyoLeave call <SID>goyo_leave()
|
||||
autocmd! User GoyoEnter call <SID>goyo_enter()
|
||||
autocmd! User GoyoLeave call <SID>goyo_leave()
|
||||
```
|
||||
Reference in New Issue
Block a user