Skip to content

Instantly share code, notes, and snippets.

@yunlingz
Created May 22, 2020 08:32
Show Gist options
  • Select an option

  • Save yunlingz/8c8e5af1d474a5aabaacbd600643f151 to your computer and use it in GitHub Desktop.

Select an option

Save yunlingz/8c8e5af1d474a5aabaacbd600643f151 to your computer and use it in GitHub Desktop.
set goyo width based on filetype
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