Created
May 22, 2020 08:32
-
-
Save yunlingz/8c8e5af1d474a5aabaacbd600643f151 to your computer and use it in GitHub Desktop.
set goyo width based on filetype
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! AutoGoyoWidth() | |
| if exists('#goyo') | |
| Goyo! | |
| return | |
| endif | |
| " --------- | |
| if index(['python'], &ft) >= 0 | |
| Goyo 95 | |
| elseif index(['rust'], &ft) >= 0 | |
| Goyo 105 | |
| else | |
| Goyo 85 | |
| endif | |
| endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment