add gvim for different platform, and replace the deprecate API of patheon