I have line to split window at start:
au VimEnter * vsplit
But sometimes it's annoying because I'm opening vim in small terminal, in this case I'd like to not split my window. I've tried this construction but it's not executing at start
if winwidth('%') >= 100 au VimEnter * vsplit endif
Is there a way to execute spit window depending on window size?