设为首页 加入收藏

TOP

Fedora 9 vi 中文显示乱码
2014-11-23 23:31:49 来源: 作者: 【 】 浏览:10
Tags:Fedora 中文 显示 乱码

于是在~/.vimrc中加入一行


set fileencodings=utf-8,gbk


OK.问题解决,再打开的时候就正常显示中文了。于是完整的.vimrc变成了:


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


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇在PS3 FC7 Linux上编译安装RSX支.. 下一篇Linux环境下的Java开发之Eclipse..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: