Resize the windows with certain width/height percents.
Handle the vim's window resize event to update the window sizes.
Make the createWindow function more intuitive.