⚠ THIS HAS MANY BUGS !
📜 Powered by Vim9 script
vim-zenmode is a Vim plugin emulates the next line with echo when statusline is not visible.
- Vim9 Head
- Example of
.vimrcvim9script ⋮ dein#add('utubo/vim-zenmode') ⋮ set statusline = 0 # toggle Zen-Mode nnoremap ZZ <Cmd>call zenmode#Toggle()<CR>
Note: This does not support contens of tabpanel.
zenmode#Enable(): boolEnable zenmode and return true.zenmode#Disable(): boolDisable zenmode and return true.zenmode#Toggle(): boolToggle zenmode and return true when zenmode is enabeld.
g:zenmode is a dictionaly.
delay(default-1)
number.
The millseconds of show the next line when return from Command-mode.
n(> 0): Delay n seconds.
0: No delay.
-1: Show the next line on cursor moved.horiz(default empty)
The char of the horizontal line.exclude(default['ControlP'])
The exclude bufnames.refeshInteval(default100)
number
The millseconds of a timer to refresh without autocmd. e.g. On textoff is changed.-1means disable regular refreshs.ruler(defaultfalse)
Keep the ruler.override(default(_, __, ___) => false)
A funcref to echo next line.
The arguments are winid, winnr and width.
This returns |true| when hooked.
e.g.)def Foo(_: number, __: number, width: number): bool echon repeat('*', width) return true enddef g:zenomde.override = Foo
preventEcho(deprecated, defaultfalse)
Prevent to echo the next line.
(for echo you want.)
Example
vim9script
g:zenmode = {
delay: 3,
horiz: '═',
}ZenmodeHoriz(default Strikeouted NonText)
Horizontal line.
