よた ときどき .NET by 刈歩 菜良 CTP
C# VB.NET掲示板
わんくま同盟
Vimエディタ日本語版
iPhone 無料アプリ
サクッと動いたよ。
使ったのはKaoriYaさんで配布されているVim 7.0.216 for Windows。
gVimしか試してへんけど...
# ところで、KaoriYaさん最近更新がないんやけど、どうしたんやろか...# ちと、心配...
投稿日時 : 2007年4月13日 0:00
>ところで、KaoriYaさん最近更新がないんやけど、どうしたんやろか... 最近いってなかった。 なかなか正式版出ませんね。 本家でもバグ出し段階なのでしょうか。 # かるぼさんの.vimrcをみてみたい。
24時間以内に更新とか書いてあるのだけど、なんかあったのかしら。 掲示板も全部404エラーだし。 廃墟と化してるような... > # かるぼさんの.vimrcをみてみたい。 vimはプログラミングでは使ってないので、大したことしてないっすよ。 _gvimrcが ===ここから " フォント設定 if has('win32') " Windows用 set guifont=BDF_M+:h9:cSHIFTJIS " set printfont=BDF_M+:h9:cSHIFTJIS set printfont=MS_ゴシック:h12:cSHIFTJIS " set printoptions=number:y endif " ビジュアル選択(D&D他)を自動的にクリップボードへ (:help guioptions_a) "set guioptions+=a set guioptions-=a ===ここまで で、_vimrcが ===ここから " 辞書設定 set dictionary+=c:\Progra~1\Vim7\web2 " タブ設定 set ts=4 sw=4 ===ここまで 7で追加されたOmni completion(いわゆるインテリセンス)がC#でいい感じだったらまたVimメインで使いたいなぁ。
> 7で追加されたOmni completion(いわゆるインテリセンス)がC#でいい感じだったらまたVimメインで使いたいなぁ。 ・標準で辞書参照されてないから使い物にならない。 ・Ctrl+SpaceでなくてCtrl+P/Nだから使いにくい(設定次第だけど。) ・XML系言語ではそこそこ使える。 ・タブもメニューではtabnew browseになってるから使いにくい。 >vimはプログラミングでは使ってないので、大したことしてないっすよ。 ほんとだ。 うちのはこんな感じ。 set guipty = noguipty set guifont=MS_Gothic:h10 set tabstop=4 set shiftwidth=4 " 文字コードの自動認識 if &encoding !=# 'utf-8' set encoding=japan set fileencoding=japan endif if has('iconv') let s:enc_euc = 'euc-jp' let s:enc_jis = 'iso-2022-jp' " iconvがeucJP-msに対応しているかをチェック if iconv("\x87\x64\x87\x6a", 'cp932', 'eucjp-ms') ==# "\xad\xc5\xad\xcb" let s:enc_euc = 'eucjp-ms' let s:enc_jis = 'iso-2022-jp-3' " iconvがJISX0213に対応しているかをチェック elseif iconv("\x87\x64\x87\x6a", 'cp932', 'euc-jisx0213') ==# "\xad\xc5\xad\xcb" let s:enc_euc = 'euc-jisx0213' let s:enc_jis = 'iso-2022-jp-3' endif " fileencodingsを構築 if &encoding ==# 'utf-8' let s:fileencodings_default = &fileencodings let &fileencodings = s:enc_jis .','. s:enc_euc .',cp932' let &fileencodings = &fileencodings .','. s:fileencodings_default unlet s:fileencodings_default else let &fileencodings = &fileencodings .','. s:enc_jis set fileencodings+=utf-8,ucs-2le,ucs-2 if &encoding =~# '^\(euc-jp\|euc-jisx0213\|eucjp-ms\)$' set fileencodings+=cp932 set fileencodings-=euc-jp set fileencodings-=euc-jisx0213 set fileencodings-=eucjp-ms let &encoding = s:enc_euc let &fileencoding = s:enc_euc else let &fileencodings = &fileencodings .','. s:enc_euc endif endif " 定数を処分 unlet s:enc_euc unlet s:enc_jis endif " 日本語を含まない場合は fileencoding に encoding を使うようにする if has('autocmd') function! AU_ReCheck_FENC() if &fileencoding =~# 'iso-2022-jp' && search("[^\x01-\x7e]", 'n') == 0 let &fileencoding=&encoding endif endfunction autocmd BufReadPost * call AU_ReCheck_FENC() endif " 改行コードの自動認識 set fileformats=unix,dos,mac " □とか○の文字があってもカーソル位置がずれないようにする if exists('&ambiwidth') set ambiwidth=double endif ほとんどこぴぺだけど。
Powered by: Copyright © 刈歩 菜良 CTP