tt25 (owner)

Revisions

  • 418fcd tt25 Wed Aug 06 08:52:52 -0700 2008
  • 5006dc tt25 Wed Aug 06 08:47:25 -0700 2008
  • 2a2978 tt25 Wed Aug 06 08:46:20 -0700 2008
  • 0b7b71 tt25 Wed Aug 06 08:26:03 -0700 2008
  • a85a40 tt25 Wed Aug 06 08:23:58 -0700 2008
  • e72b1b tt25 Wed Aug 06 08:23:56 -0700 2008
  • 8bfdf8 tt25 Wed Aug 06 08:19:36 -0700 2008
gist: 4223 Download_button fork
public
Public Clone URL: git://gist.github.com/4223.git
Embed All Files: show embed
VimL #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
set nocompatible
syntax on
set number
set ts=2 sw=2
 
" for YankRing.vim
set viminfo+=!
 
set shiftround
set nowrap
set ignorecase
set smartcase
set incsearch
set laststatus=2
set nohlsearch
set showcmd
set noswapfile
set nobackup
set smartindent
set visualbell
set ambiwidth=double
set wildmenu
set wildmode=list:full
set notitle
set lazyredraw
 
set listchars=tab:>\
set list
 
set guifont=VLGothic\ 9
set statusline=%<%c\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']['.&ft.']'}\ %=%F
au BufEnter * execute ":lcd " . expand("%:p:h")
 
"------------------------------------------------------------
"plugin
 
"fuzzyfinder
let g:FuzzyFinderOptions={'Base':{}}
let g:FuzzyFinderOptions.Base.key_open_split = '<S-Enter>'
let g:FuzzyFinderOptions.Base.key_open_vsplit = '<CS-Enter>'
nmap <silent> <C-f><C-b> :FuzzyFinderBuffer<CR>
nmap <silent> <C-f><C-f> :FuzzyFinderFile<CR>
 
"------------------------------------------------------------
 
" 文字コードの自動認識
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
    let &fileencodings = s:fileencodings_default.",".&fileencodings .','
    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
 
VimL #
1
2
3
4
5
6
7
8
9
10
11
12
"colorscheme zenburn
colorscheme wombat
"colorscheme twilight
 
set title
 
set columns=135
set lines=54
 
set guioptions-=T
set guioptions-=m