Open the discuz PHP program under Fedora9. The comments are garbled. So in ~ /. Add a setfileencodings = UTF-8 and gbkOK to vimrc. Solve the Problem and display Chinese characters normally when you enable it again. So the complete. vimrc becomes: setnocompatiblesetnumberfiletypeonsethistory = 1000 setbackground = darksynt
Open the discuz PHP program under Fedora 9. The comments are garbled.
So in ~ /. Add a line to vimrc
Set fileencodings = UTF-8, gbk
OK. Solve the problem, and then display Chinese normally. So the complete. vimrc becomes:
Set nocompatible
Set number
Filetype on
Set history = 1000
Set background = dark
Syntax on
Set autoindent
Set smartindent
Set tabstop = 4
Set shiftwidth = 4
Set showmatch
Set guioptions-= T
Set vb t_vb =
Set ruler
Set nohls
Set incsearch
If has ("vms ")
Set nobackup
Else
Set backup
Endif
Set fileencodings = UTF-8, gbk