Set-ExecutionPolicy RemoteSigned 提示輸入Y
new-item -path $profile -itemtype file -force
set-alias vim "D:/software/Vim/vim80/./vim.exe" # To edit the Powershell Profile # (Not that I'll remember this) Function Edit-Profile { vim $profile } # To edit Vim settings Function Edit-Vimrc { vim $HOME\_vimrc }
gvim安裝目錄下的_vimrc文件中,添加以下配置:shell
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " vim7.1在windows下的編碼設置。By Huadong.Liu """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set encoding=utf-8 set fileencodings=utf-8,chinese,latin-1 if has("win32") set fileencoding=chinese else set fileencoding=utf-8 endif "解決菜單亂碼 source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim "解決consle輸出亂碼 language messages zh_CN.utf-8