Question 1: How to solve the random code
On Windows8, there are two types of garbled codes:
-The first is to start the welcome interface with random codes.
-The second performance is (for example) when a search is finished, Vim will display a prompt message “finished” in the command bar, but the command bar is mostly garbled.
In addition, I set the file encoding in. vimrc as follows:Full. vimrc configuration
set nocp set encoding=utf-8 set termencoding=utf-8 set fileencoding=utf-8 set fileencodings=ucs-bom,utf-8,big5,gb2312,latin1,cp936,gb18030 set ffs=unix,dos,mac set mousehide set showcmd
Question 2: Copy and paste with clipboard
I set the mouse disabled in. vimrc, so the mouse has no effect. how do I interact with the clipboard when copying and pasting?
My setting for this paragraph is
if has("gui_running") set encoding=utf-8 set fileencodings=utf-8,chinese,latin-1 if has("win32") set fileencoding=chinese else set fileencoding=utf-8 endif let &termencoding=&encoding "Resolve menu misprints source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim "Solving consle Output Scrambling language messages zh_CN.utf-8 endif
Under the command line, or gvim is normal. Including the menu, the following tips can correctly display Chinese, you can try. I am using win8.1 system.
Copy and paste, I use