티스토리 뷰
gvim이라면 편집→StartupSettings 에 추가하세요~
" vim 에서 UTF-8, euc-kr 한글문서 그냥 열기.
" {{{ Locale settings
" Try to come up with some nice sane GUI fonts. Also try to set a sensible
" value for fileencodings based upon locale. These can all be overridden in
" the user vimrc file.
if v:lang =~? "^ko"
set fileencodings=euc-kr
set fileencoding=euc-kr
set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-*
elseif v:lang =~? "^ja_JP"
set fileencodings=euc-jp
set fileencoding=euc-jp
set guifontset=-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*
elseif v:lang =~? "^zh_TW"
set fileencodings=big5
set fileencoding=big5
set guifontset=-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
elseif v:lang =~? "^zh_CN"
set fileencodings=gb2312
set fileencoding=gb2312
set guifontset=*-r-*
endif" If we have a BOM, always honour that rather than trying to guess.
" Always check for UTF-8 when trying to determine encodings.
if &fileencodings !~? "ucs-bom"
set fileencodings^=ucs-bom
set fileencoding=ucs-bom
else
set fileencodings+=ucs-bom
endif
if &fileencodings !~? "utf-8"
set fileencodings^=utf-8
set fileencoding=utf-8
else
set fileencodings+=utf-8
endif
" }}}
댓글
공지사항
- Total
- 144,485
- Today
- 2
- Yesterday
- 1
TAG
- 실패한요청규칙추적
- 샤오이
- iis7
- 샤오미
- GVim
- 크롬캐스트
- random colors
- 小蚁智能摄像机
- 아이폰가죽케이스
- ignore pattern
- FREB
- chromecast
- gantt
- GanttChart
- LOG_FILE_MAX_SIZE_TRUNCATE
- 무시 패턴
- 스마트웹캠
- 아이폰
- vc++
- php
- apache22
- FreeBSD
- 小蚁
- win2k8
- syntaxhighlight
- VIM
- 컬러스킴
- Natural Ergonomic Desktop 7000
- GanttCalendar
- 小米