-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
117 lines (96 loc) · 2.73 KB
/
vimrc
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
" vim: filetype=vim
" 初期化
filetype off
filetype plugin indent off
" 基本設定
set number " 行数を表示する
set tabstop=8 " \tの表示幅
set shiftwidth=8
"set expandtab " タブを複数の半角スペースにする
set autoindent " オートインデント
set smarttab
set hidden " 不可視文字を可視化する
set showmatch " 対応する括弧などを表示する
"set virtualedit=all
set backspace=indent,eol,start
" 文字コード
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,iso-2022-jp,cp932,euc-jp
" ステータスラインの表示
set laststatus=2
set statusline=%<%f\ %m%r%h%w%=%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%y%4l,%c%V%6P
"set statusline+=%{fugitive#statusline()}
"""""""""
" NeoBundleやプラグインに関する設定
"""""""""
set nocompatible
filetype off
if has('vim_starting')
set nocompatible
set runtimepath+=$VIM/vimfiles/bundle/neobundle.vim/
" set rtp+=$HOME/.vim/bundle/neobundle.vim/
" call neobundle#rc(expand('$HOME/.vim/bundle/'))
call neobundle#begin(expand('$VIM/vimfiles/bundle/'))
endif
NeoBundleFetch 'Shougo/neobundle.vim'
""" プラグイン
" ファイルを開きやすくする
NeoBundle 'Shougo/unite.vim'
NeoBundle 'Shougo/neomru.vim'
" ディレクトリツリーを表示する
NeoBundle 'scrooloose/nerdtree'
" Rubyのendを自動挿入する
" NeoBundle 'tpope/vim-endwise'
NeoBundle 'cohama/vim-smartinput-endwise'
call smartinput_endwize#define_default_rules()
" 複数行のコメントを設定する
NeoBundle 'tomtom/tcomment_vim'
" インデントを視覚化する
"NeoBundle 'nathanaelkane/vim-indent-guides'
"let g:indent_guides_enable_on_vim_startup = 1
" 対応したログに色を付ける
NeoBundle 'vim-scripts/AnsiEsc.vim'
" sudo して開く
NeoBundle 'sudo.vim'
" Gist
NeoBundle 'mattn/webapi-vim'
NeoBundle 'mattn/gist-vim'
" 日本語ヘルプ
NeoBundle 'vim-jp/vimdoc-ja'
" 入力補完
if has('lua')
NeoBundle 'Shougo/neocomplete'
endif
""" カラースキーム
" solarized
"NeoBundle 'altercation/vim-colors-solarized'
" mustang
"NeoBundle 'croaker/mustang-vim'
" moria
NeoBundle 'vim-scripts/moria'
" badwolf
"NeoBundle 'sjl/badwolf'
call neobundle#end()
NeoBundleCheck
" 配色
syntax enable
set background=dark
colorscheme moria
"if &term =~ "xterm-256color" || "screen-256color"
" set t_Co=256
" set t_Sf=[3%dm
" set t_Sb=[4%dm
"elseif &term =~ "xterm-color"
" set t_Co=8
" set t_Sf=[3%dm
" set t_Sb=[4%dm
"endif
" キーマップ
nnoremap <silent> ,t :<C-u>tabnew<LF>
nnoremap <silent> ,uy :<C-u>Unite history/yank<LF>
nnoremap <silent> ,ub :<C-u>Unite buffer<LF>
nnoremap <silent> ,uf :<C-u>Unite file<LF>
nnoremap <silent> ,uu :<C-u>Unite file_mru buffer<LF>
" 設定終了処理
filetype plugin indent on