mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 19:54:10 -05:00
8 lines
270 B
VimL
8 lines
270 B
VimL
autocmd VimEnter,Filetype *
|
|
\ let g:goyo_width = &textwidth |
|
|
\ if (g:goyo_width == 0) |
|
|
\ let g:goyo_width = max(map(getline(1,'$'), 'len(v:val)')) |
|
|
\ if (g:goyo_width < 80) |
|
|
\ let g:goyo_width = 80 |
|
|
\ endif |
|
|
\ endif
|