refactoring for working in windows gvim