|
Revision 2143, 1.5 kB
(checked in by mattn, 9 months ago)
|
|
dotfiles/vim/mattn-gvimrc: added my gvimrc
|
| Line | |
|---|
| 1 | " vi:set ts=8 sts=2 sw=2 tw=0:
|
|---|
| 2 | " viM:fdm=marker fdl=0 fdc=3
|
|---|
| 3 | " Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
|---|
| 4 |
|
|---|
| 5 | scriptencoding utf-8
|
|---|
| 6 |
|
|---|
| 7 | " for font
|
|---|
| 8 | if has('win32')
|
|---|
| 9 | " for windows
|
|---|
| 10 | "set guifont=MS\ GOTHIC:h9
|
|---|
| 11 | set guifont=SH_G30-M:h10.5
|
|---|
| 12 | if exists("&linespace")
|
|---|
| 13 | set linespace=1
|
|---|
| 14 | endif
|
|---|
| 15 | elseif has('xfontset')
|
|---|
| 16 | " for unix
|
|---|
| 17 | if &encoding == 'utf-8'
|
|---|
| 18 | "set guifont=-misc-fixed-medium-r-normal-*-18-*-*-*-*-*-*
|
|---|
| 19 | "set guifontwide=-misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1
|
|---|
| 20 | "set guifont=-gnu-unifont-medium-r-normal-*-*-*-100-100-c-*-iso10646-1
|
|---|
| 21 | set guifont=-misc-fixed-medium-r-normal-*-13-*-*-*-*-*-*
|
|---|
| 22 | if !has('GUI_KDE')
|
|---|
| 23 | set guifontwide=-misc-kochi\ gothic-medium-r-normal-*-13-*-*-*-c-*-iso10646-1
|
|---|
| 24 | endif
|
|---|
| 25 | else
|
|---|
| 26 | if !has('GUI_KDE')
|
|---|
| 27 | set guifontset=a14,r14,k14
|
|---|
| 28 | endif
|
|---|
| 29 | endif
|
|---|
| 30 | elseif has('mac')
|
|---|
| 31 | set guifont=Osaka:h14
|
|---|
| 32 | else
|
|---|
| 33 | if has('GUI_GTK2')
|
|---|
| 34 | set guifont=Kochi\ Gothic\ 10
|
|---|
| 35 | set guifont=SH\ G30\ 11
|
|---|
| 36 | elseif has('GUI_KDE')
|
|---|
| 37 | set guifont=Kochi\ Gothic/10/-1/5/50/0/0/0/0/0
|
|---|
| 38 | else
|
|---|
| 39 | set guifont=Kochi\ Gothic:10
|
|---|
| 40 | endif
|
|---|
| 41 | endif
|
|---|
| 42 |
|
|---|
| 43 | if &guioptions =~# 'M'
|
|---|
| 44 | let &guioptions = substitute(&guioptions, '[mT]', '', 'g')
|
|---|
| 45 | endif
|
|---|
| 46 | set guioptions+=b
|
|---|
| 47 | if has('win32') && version >= 600
|
|---|
| 48 | set iminsert=0
|
|---|
| 49 | set imsearch=0
|
|---|
| 50 | endif
|
|---|
| 51 |
|
|---|
| 52 | if has('multi_byte_ime') || has('xim')
|
|---|
| 53 | highlight CursorIM guibg=Yellow guifg=NONE
|
|---|
| 54 | "set iminsert=0 imsearch=0
|
|---|
| 55 | if has('xim')
|
|---|
| 56 | if has('GUI_GTK')
|
|---|
| 57 | set imactivatekey=s-space
|
|---|
| 58 | endif
|
|---|
| 59 | endif
|
|---|
| 60 | endif
|
|---|