Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
superbrothers
committed
Apr 10, 2011
1 parent
448f673
commit 37ca72c
Showing
2 changed files
with
300 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,296 @@ | ||
" System gvimrc file for MacVim | ||
" | ||
" Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com> | ||
" Last Change: Sun Aug 29 2009 | ||
" | ||
" This is a work in progress. If you feel so inclined, please help me improve | ||
" this file. | ||
|
||
|
||
" Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise | ||
" <CR> would not be recognized. See ":help 'cpoptions'". | ||
let s:cpo_save = &cpo | ||
set cpo&vim | ||
|
||
|
||
" | ||
" Global default options | ||
" | ||
|
||
if !exists("syntax_on") | ||
syntax on | ||
endif | ||
|
||
if !exists("colors_name") | ||
" Use the macvim color scheme by default | ||
colorscheme macvim | ||
endif | ||
|
||
" To make tabs more readable, the label only contains the tail of the file | ||
" name and the buffer modified flag. | ||
set guitablabel=%M%t | ||
|
||
|
||
" Send print jobs to Preview.app. This does not delete the temporary ps file | ||
" that is generated by :hardcopy. | ||
set printexpr=system('open\ -a\ Preview\ '.v:fname_in)\ +\ v:shell_error | ||
|
||
|
||
" This is so that HIG Cmd and Option movement mappings can be disabled by | ||
" adding the line | ||
" let macvim_skip_cmd_opt_movement = 1 | ||
" to the user .vimrc | ||
" | ||
if !exists("macvim_skip_cmd_opt_movement") | ||
no <D-Left> <Home> | ||
no! <D-Left> <Home> | ||
no <M-Left> <C-Left> | ||
no! <M-Left> <C-Left> | ||
|
||
no <D-Right> <End> | ||
no! <D-Right> <End> | ||
no <M-Right> <C-Right> | ||
no! <M-Right> <C-Right> | ||
|
||
no <D-Up> <C-Home> | ||
ino <D-Up> <C-Home> | ||
map <M-Up> { | ||
imap <M-Up> <C-o>{ | ||
|
||
no <D-Down> <C-End> | ||
ino <D-Down> <C-End> | ||
map <M-Down> } | ||
imap <M-Down> <C-o>} | ||
|
||
imap <M-BS> <C-w> | ||
imap <D-BS> <C-u> | ||
endif " !exists("macvim_skip_cmd_opt_movement") | ||
|
||
|
||
" This is so that the HIG shift movement related settings can be enabled by | ||
" adding the line | ||
" let macvim_hig_shift_movement = 1 | ||
" to the user .vimrc (not .gvimrc!). | ||
" | ||
if exists("macvim_hig_shift_movement") | ||
" Shift + special movement key (<S-Left>, etc.) and mouse starts insert mode | ||
set selectmode=mouse,key | ||
set keymodel=startsel,stopsel | ||
|
||
" HIG related shift + special movement key mappings | ||
nn <S-D-Left> <S-Home> | ||
vn <S-D-Left> <S-Home> | ||
ino <S-D-Left> <S-Home> | ||
nn <S-M-Left> <S-C-Left> | ||
vn <S-M-Left> <S-C-Left> | ||
ino <S-M-Left> <S-C-Left> | ||
|
||
nn <S-D-Right> <S-End> | ||
vn <S-D-Right> <S-End> | ||
ino <S-D-Right> <S-End> | ||
nn <S-M-Right> <S-C-Right> | ||
vn <S-M-Right> <S-C-Right> | ||
ino <S-M-Right> <S-C-Right> | ||
|
||
nn <S-D-Up> <S-C-Home> | ||
vn <S-D-Up> <S-C-Home> | ||
ino <S-D-Up> <S-C-Home> | ||
|
||
nn <S-D-Down> <S-C-End> | ||
vn <S-D-Down> <S-C-End> | ||
ino <S-D-Down> <S-C-End> | ||
endif " exists("macvim_hig_shift_movement") | ||
|
||
|
||
" Restore the previous value of 'cpoptions'. | ||
let &cpo = s:cpo_save | ||
unlet s:cpo_save | ||
|
||
|
||
" vim:set ts=8 sts=2 sw=2 tw=0: (この行に関しては:help modelineを参照) | ||
" | ||
" An example for a Japanese version gvimrc file. | ||
" 日本語版のデフォルトGUI設定ファイル(gvimrc) - Vim7用試作 | ||
" | ||
" Last Change: 08-Jul-2007. | ||
" Maintainer: MURAOKA Taro <koron@tka.att.ne.jp> | ||
" | ||
" 解説: | ||
" このファイルにはVimの起動時に必ず設定される、GUI関連の設定が書かれていま | ||
" す。編集時の挙動に関する設定はvimrcに書かかれています。 | ||
" | ||
" 個人用設定は_gvimrcというファイルを作成しそこで行ないます。_gvimrcはこの | ||
" ファイルの後に読込まれるため、ここに書かれた内容を上書きして設定することが | ||
" 出来ます。_gvimrcは$HOMEまたは$VIMに置いておく必要があります。$HOMEは$VIM | ||
" よりも優先され、$HOMEでみつかった場合$VIMは読込まれません。 | ||
" | ||
" 管理者向けに本設定ファイルを直接書き換えずに済ませることを目的として、サイ | ||
" トローカルな設定を別ファイルで行なえるように配慮してあります。Vim起動時に | ||
" サイトローカルな設定ファイル($VIM/gvimrc_local.vim)が存在するならば、本設 | ||
" 定ファイルの主要部分が読み込まれる前に自動的に読み込みます。 | ||
" | ||
" 読み込み後、変数g:gvimrc_local_finishが非0の値に設定されていた場合には本設 | ||
" 定ファイルに書かれた内容は一切実行されません。デフォルト動作を全て差し替え | ||
" たい場合に利用して下さい。 | ||
" | ||
" 参考: | ||
" :help gvimrc | ||
" :echo $HOME | ||
" :echo $VIM | ||
" :version | ||
|
||
"--------------------------------------------------------------------------- | ||
" サイトローカルな設定($VIM/gvimrc_local.vim)があれば読み込む。読み込んだ後 | ||
" に変数g:gvimrc_local_finishに非0な値が設定されていた場合には、それ以上の設 | ||
" 定ファイルの読込を中止する。 | ||
if 1 && filereadable($VIM . '/gvimrc_local.vim') | ||
source $VIM/gvimrc_local.vim | ||
if exists('g:gvimrc_local_finish') && g:gvimrc_local_finish != 0 | ||
finish | ||
endif | ||
endif | ||
|
||
"--------------------------------------------------------------------------- | ||
" ユーザ優先設定($HOME/.gvimrc_first.vim)があれば読み込む。読み込んだ後に変 | ||
" 数g:gvimrc_first_finishに非0な値が設定されていた場合には、それ以上の設定 | ||
" ファイルの読込を中止する。 | ||
if 0 && exists('$HOME') && filereadable($HOME . '/.gvimrc_first.vim') | ||
unlet! g:gvimrc_first_finish | ||
source $HOME/.gvimrc_first.vim | ||
if exists('g:gvimrc_first_finish') && g:gvimrc_first_finish != 0 | ||
finish | ||
endif | ||
endif | ||
|
||
"--------------------------------------------------------------------------- | ||
" Bram氏の提供する設定例をインクルード (別ファイル:vimrc_example.vim)。これ | ||
" 以前にg:no_gvimrc_exampleに非0な値を設定しておけばインクルードしない。 | ||
if 1 && (!exists('g:no_gvimrc_example') || g:no_gvimrc_example == 0) | ||
source $VIMRUNTIME/gvimrc_example.vim | ||
endif | ||
|
||
"--------------------------------------------------------------------------- | ||
" カラー設定: | ||
colorscheme lucius | ||
|
||
"--------------------------------------------------------------------------- | ||
" フォント設定: | ||
" | ||
if has('win32') | ||
" Windows用 | ||
set guifont=MS_Gothic:h12:cSHIFTJIS | ||
"set guifont=MS_Mincho:h12:cSHIFTJIS | ||
" 行間隔の設定 | ||
set linespace=1 | ||
" 一部のUCS文字の幅を自動計測して決める | ||
if has('kaoriya') | ||
set ambiwidth=auto | ||
endif | ||
elseif has('mac') || has('gui_macvim') | ||
set guifont=Osaka-Mono:h14 | ||
set guifontwide=Osaka-Mono:h14 | ||
elseif has('xfontset') | ||
" UNIX用 (xfontsetを使用) | ||
set guifontset=a14,r14,k14 | ||
endif | ||
|
||
"--------------------------------------------------------------------------- | ||
" ウインドウに関する設定: | ||
" | ||
" ウインドウの幅 | ||
set columns=80 | ||
" ウインドウの高さ | ||
set lines=25 | ||
" コマンドラインの高さ(GUI使用時) | ||
set cmdheight=2 | ||
" 画面を黒地に白にする (次行の先頭の " を削除すれば有効になる) | ||
"colorscheme evening " (GUI使用時) | ||
|
||
"--------------------------------------------------------------------------- | ||
" 日本語入力に関する設定: | ||
" | ||
if has('multi_byte_ime') || has('xim') || has('mac') || has('gui_macvim') | ||
" IME ON時のカーソルの色を設定(設定例:紫) | ||
highlight CursorIM guibg=Purple guifg=NONE | ||
" 挿入モード・検索モードでのデフォルトのIME状態設定 | ||
set noimdisable | ||
set iminsert=0 imsearch=0 | ||
if has('xim') && has('GUI_GTK') | ||
" XIMの入力開始キーを設定: | ||
" 下記の s-space はShift+Spaceの意味でkinput2+canna用設定 | ||
"set imactivatekey=s-space | ||
endif | ||
" 挿入モードでのIME状態を記憶させない場合、次行のコメントを解除 | ||
"inoremap <silent> <ESC> <ESC>:set iminsert=0<CR> | ||
endif | ||
|
||
"--------------------------------------------------------------------------- | ||
" マウスに関する設定: | ||
" | ||
" 解説: | ||
" mousefocusは幾つか問題(一例:ウィンドウを分割しているラインにカーソルがあっ | ||
" ている時の挙動)があるのでデフォルトでは設定しない。Windowsではmousehide | ||
" が、マウスカーソルをVimのタイトルバーに置き日本語を入力するとチラチラする | ||
" という問題を引き起す。 | ||
" | ||
" どのモードでもマウスを使えるようにする | ||
set mouse=a | ||
" マウスの移動でフォーカスを自動的に切替えない (mousefocus:切替る) | ||
set nomousefocus | ||
" 入力時にマウスポインタを隠す (nomousehide:隠さない) | ||
set mousehide | ||
" ビジュアル選択(D&D他)を自動的にクリップボードへ (:help guioptions_a) | ||
"set guioptions+=a | ||
|
||
"--------------------------------------------------------------------------- | ||
" メニューに関する設定: | ||
" | ||
" 解説: | ||
" "M"オプションが指定されたときはメニュー("m")・ツールバー("T")供に登録され | ||
" ないので、自動的にそれらの領域を削除するようにした。よって、デフォルトのそ | ||
" れらを無視してユーザが独自の一式を登録した場合には、それらが表示されないと | ||
" いう問題が生じ得る。しかしあまりにレアなケースであると考えられるので無視す | ||
" る。 | ||
" | ||
if &guioptions =~# 'M' | ||
let &guioptions = substitute(&guioptions, '[mT]', '', 'g') | ||
endif | ||
|
||
"--------------------------------------------------------------------------- | ||
" その他、見栄えに関する設定: | ||
" | ||
" 検索文字列をハイライトしない(_vimrcではなく_gvimrcで設定する必要がある) | ||
"set nohlsearch | ||
|
||
"--------------------------------------------------------------------------- | ||
" 印刷に関する設定: | ||
" | ||
" 注釈: | ||
" 印刷はGUIでなくてもできるのでvimrcで設定したほうが良いかもしれない。この辺 | ||
" りはWindowsではかなり曖昧。一般的に印刷には明朝、と言われることがあるらし | ||
" いのでデフォルトフォントは明朝にしておく。ゴシックを使いたい場合はコメント | ||
" アウトしてあるprintfontを参考に。 | ||
" | ||
" 参考: | ||
" :hardcopy | ||
" :help 'printfont' | ||
" :help printing | ||
" | ||
" 印刷用フォント | ||
if has('printer') | ||
if has('win32') | ||
set printfont=MS_Mincho:h12:cSHIFTJIS | ||
"set printfont=MS_Gothic:h12:cSHIFTJIS | ||
endif | ||
endif | ||
|
||
" Copyright (C) 2007 KaoriYa/MURAOKA Taro | ||
|
||
if has('gui_macvim') | ||
let $SSH_ASKPASS = simplify($VIM . '/../../MacOS') . '/macvim-askpass' | ||
endif | ||
|
||
if has("gui_running") | ||
set fuoptions=maxvert,maxhorz | ||
au GUIEnter * set fullscreen | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require 'wirble' | ||
|
||
Wirble.init | ||
Wirble.colorize |