Fix project.vim

1. Fix a bug
2. Update the only window setting