-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
189 lines (142 loc) · 3.91 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sets how many lines of history VIM has to remember
set history=1000
" Highlight Parenthesis
set showmatch
" Display Number
set number
" Diplay Invisible Chars
set list
set listchars=tab:>.,trail:_,extends:>,precedes:<
set display=uhex
" Display ZenkakuSpace
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=darkgray
match ZenkakuSpace / /
" Highlight Cursorline
set cursorline
" Scrolling Page <space>j, <space>k
noremap <Space>j <C-f>
noremap <Space>k <C-b>
" Searching
set wrapscan " 最後まで検索したら先頭へ戻る
set ignorecase " 大文字小文字無視
set smartcase " 検索文字列に大文字が含まれている場合は区別して検索する
set incsearch " インクリメンタルサーチ
set hlsearch " 検索文字をハイライト
nmap <ESC><ESC> ;nohlsearch<CR><ESC> " Escの2回押しでハイライト消去
" Indent
"set autoindent
"set paste
"set smartindent
"set cindent
" Tab
set expandtab
set tabstop=2 shiftwidth=2 softtabstop=0
" Don't redraw while executing macros (good performance config)
"set lazyredraw
" For regular expressions turn magic on
set magic
" Escの2回押しでハイライト消去
"nmap <ESC><ESC> ;nohlsearch<CR><ESC>
nnoremap <CR> :noh<CR><CR>
" Status Line
set laststatus=2 " 常にステータスラインを表示
"カーソルが何行目の何列目に置かれているかを表示する
set ruler
" Vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Bundles
Bundle 'gmarik/vundle'
Bundle 'scrooloose/nerdtree'
Bundle "YankRing.vim"
Bundle "http://github.com/thinca/vim-quickrun.git"
Bundle "http://github.com/thinca/vim-poslist.git"
Bundle "http://github.com/mattn/gist-vim.git"
Bundle "http://github.com/rstacruz/sparkup.git", {'rtp': 'vim/'}
" Color
Bundle 'altercation/vim-colors-solarized'
"Bundle 'xoria256.vim'
"Bundle 'jpo/vim-railscasts-theme'
"Bundle '29decibel/codeschool-vim-theme'
" Japanese
Bundle 'kana/vim-textobj-user'
Bundle 'kana/vim-textobj-fold'
Bundle 'kana/vim-textobj-indent'
Bundle 'kana/vim-textobj-lastpat'
" Programming
Bundle "jQuery"
Bundle "rails.vim"
Bundle 'vim-ruby/vim-ruby'
Bundle 'ecomba/vim-ruby-refactoring'
Bundle 'nelstrom/vim-textobj-rubyblock'
" Snippets
Bundle "http://github.com/gmarik/snipmate.vim.git"
" Syntax highlight
Bundle "cucumber.zip"
Bundle "Markdown"
" Git integration
Bundle "git.zip"
Bundle "fugitive.vim"
" (HT|X)ml tool
Bundle "ragtag.vim"
" Utility
Bundle "repeat.vim"
Bundle "surround.vim"
Bundle "SuperTab"
Bundle "file-line"
Bundle "Align"
" FuzzyFinder
Bundle "L9"
Bundle "FuzzyFinder"
"Bundle 'git-commit'
"Bundle 'vimwiki'
"Bundle 'Rename'
"Bundle 'jade.vim'
"Bundle 'taglist.vim'
"Bundle 'scrooloose/syntastic'
"Bundle 'Shougo/neocomplcache'
"Bundle 'Shougo/vimfiler'
"Bundle 'h1mesuke/vim-alignta'
"Bundle 'Shougo/unite.vim'
"Bundle 'tsukkee/unite-help'
"Bundle 'h1mesuke/unite-outline'
"Bundle 'basyura/unite-rails'
"Bundle 'tsukkee/unite-tag'
"Bundle 'tpope/vim-haml'
"Bundle 'tpope/vim-rails'
"Bundle 'tpope/vim-cucumber'
"Bundle 'tpope/vim-endwise'
"Bundle 'tpope/vim-surround'
"Bundle 'tpope/vim-fugitive'
"Bundle 'Lokaltog/vim-powerline'
"Bundle 'tangledhelix/vim-octopress'
"Bundle 'csexton/trailertrash.vim'
"Bundle 'glidenote/octoeditor.vim'
"Bundle 'kchmck/vim-coffee-script'
"Bundle 'mattn/gist-vim'
"Bundle 'mattn/webapi-vim'
"Bundle 'hail2u/vim-css3-syntax'
" Vundle required
filetype plugin indent on " required!
" Color
syntax enable
set term=screen-256color
set background=dark
" set background=light
colorscheme solarized
" launch NERDtree when execute vim .
let file_name = expand("%")
if has('vim_starting') && file_name == ""
autocmd VimEnter * NERDTree ./
endif
:command NE NERDTree
map <C-l> :tabn<CR>
map <C-h> :tabp<CR>
map <C-n> :tabnew<CR>
map <S-l> :wincmd l<CR>
map <S-h> :wincmd h<CR>