Skip to content

Instantly share code, notes, and snippets.

@cohalz
Created September 16, 2013 12:17
Show Gist options
  • Save cohalz/6579974 to your computer and use it in GitHub Desktop.
Save cohalz/6579974 to your computer and use it in GitHub Desktop.
let $SSH_ASKPASS = simplify($VIM . '/../../MacOS') . '/macvim-askpass'
set noimdisable
set imdisableactivate
if has('gui_macvim')
set guioptions-=T
set showtabline=2 " タブを常に表示
set transparency=9 " 透明度
set imdisable " IME OFF
set guioptions-=T " ツールバー非表示
set antialias " アンチエイリアス
set tabstop=4 " タブサイズ
set number " 行番号表示
set nobackup " バックアップなし
set visualbell t_vb= " ビープ音なし
colorscheme hybrid " カラースキーマ
set columns=128 " 横幅
set lines=999935 " 行数
set nowrapscan " 検索をファイルの先頭へループしない
" フォント設定
set guifontwide=Ricty:h20
set guifont=Ricty:h16
endif
"ポップアップ補完メニュー色設定(通常の項目、選択されている項目、スクロールバー、スクロールバーのつまみ部分)
hi Pmenu guibg=#222222
hi PmenuSel guifg=#8bcced guibg=#333333
hi PmenuSbar guibg=#ffffff
hi PmenuThumb guifg=#3cac3c
let g:jscomplete_use = ['dom', 'moz','xpcom','es6th']
augroup InsModeAu
autocmd!
autocmd InsertEnter,CmdwinEnter * set noimdisable
autocmd InsertLeave,CmdwinLeave * set imdisable
augroup END
"IME状態に応じたカーソル色を設定
if has('multi_byte_ime')
highlight Cursor guifg=#000d18 guibg=#8faf9f gui=bold
highlight CursorIM guifg=NONE guibg=#ecbcbc
endif
" 挿入モード終了時に IME 状態を保存しない
inoremap <silent> <Esc> <Esc>
inoremap <silent> <C-[> <Esc>
" 「日本語入力固定モード」切り替えキー
inoremap <silent> <C-j> <C-^>
augroup hack234
autocmd!
if has('mac')
autocmd FocusGained * set transparency=10
autocmd FocusLost * set transparency=20
endif
augroup END
:highlight LineNr guifg=#777777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment