Groups
Groups
Sign in
Groups
Groups
vim_jp
Conversations
Labels
About
Send feedback
Help
gVimで多言語の文字が含まれたファイルを正しく表示する方法
863 views
Skip to first unread message
Naohiro KORIYAMA
unread,
Aug 21, 2011, 10:47:10 AM
8/21/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
64bit Windows 7上でkaoriya版gVimを使用しています。
gVimで一つのファイルに多言語の文字(日本語、中国語、韓国語等々)が含まれたファイルを正しく表示する方法というのはありますでしょうか?
一応UTF-8で書かれたものと言うことで。
MacVimだと特に意識して設定などしなくても表示されるのです。
Taro MURAOKA
unread,
Aug 21, 2011, 11:23:47 AM
8/21/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim_jp
ども、村岡です。
以下、2つ行えば表示できるはずです。
1. enc=utf-8とする。
switchesを使うと便利かも。
switchesの詳細はCHANGES.txtの20110429を参照してください。
2. 多言語対応のフォントを利用する
手前味噌ですがBDF UM+
http://www1.kaoriya.net/#FONTDATA
みたいなのがオススメです。
わからないところがあったらまた聞いてください。
Naohiro KORIYAMA
unread,
Aug 22, 2011, 12:01:53 PM
8/22/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
村岡さん、お返事ありがとうございます。
郡山です。
switchesのenabledディレクトリにutf-8.vimというファイルを作ってみたところ、utf-8になり、フォント的に表示出来るものはちゃんと表示されました。
また、BDF UM+を使うことにより、いくつかの表示されないグリフが表示されるようになりました。
ただ、一つ問題があり、enc=utf-8にしてしまうと、メニューが化けてしまうことぐらいですか。
ところで、特に自分で設定していない状態で比較すると、MacVim-kaoriyaが一番色々といい感じでした。
emacs-23.3でもHelloファイル(M-x view-hello-file)で表示出来ない奴が色々とあったり。まあこれはフォントの設定をすればいい話なんでしょうけど。
Taro MURAOKA
unread,
Aug 22, 2011, 7:31:22 PM
8/22/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim_jp
メニューはswitchesを利用した私の環境では化けていません。
手動で :set enc=utf-8 したときのことでしょうか?
詳細を教えて下さい。
# 日本のWindowsではVimに限らず
# デフォルトでCP932ベースであることがかなり重要です。
# とはいえ私も段々にUTF-8を使うことが多くなっているので
# 折衷案としてswitchesを用意しています。
Naohiro KORIYAMA
unread,
Aug 23, 2011, 9:10:02 AM
8/23/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
switchesでやったとき
_vimrcで設定したとき
の両方で起きていました。
ただ、自分の環境はちとあれなのが微妙です。
通常のgVimベースのディレクトリ構成で無理矢理動くように、
mklinkでリンクを張ったりしたりと…
Reply all
Reply to author
Forward
0 new messages