solve window error and arrange vimrc