mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-18 08:13:43 -05:00
autocmd!
@@ -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()
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user