显示Macvim中文字符

时间:2016-12-11 03:24:24

标签: macvim

我的macvim无法正常显示中文字符,它向我显示正方形?

我尝试将此set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1放入我的.vimrc文件中,但问题仍未解决。

这是我的.vimrc文件。

set encoding=utf-8
set rtp+=~/.vim/bundle/neobundle.vim/
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1

set guifont=Monaco:h15
colorscheme Tomorrow-Night-Eighties
runtime! custom_preconfig/*.vim
runtime! common_config/*.vim
runtime! custom_config/*.vim

" for git, add spell checking and automatic wrapping at 80 columns
autocmd Filetype gitcommit setlocal spell textwidth=80
map <F1> <Esc>

" auto complete special keyword such as _ and - for css and scss 48-57 means
" unicode character
autocmd FileType css,scss,coffee set iskeyword=@,48-57,_,-,?,!,192-255

" autosave on focus lost
:au FocusLost * silent! wa

0 个答案:

没有答案