-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
157 lines (121 loc) · 4.28 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
"==============================================================================
" An example for vimrc
"
" Maintainer : Shoji KUMAGAI <shoji.kumagai@mail.rakuten.co.jp>
" Last updated : Thu Dec 22 20:56:10 JST 2011
"
" To use this, copy to your home directory.
"==============================================================================
"==============================================================================
" Vim scripts
"==============================================================================
"----------------------------------------------------------
" neobundle.vim
"----------------------------------------------------------
" If you don't have neobundle.vim, follow the steps below
" to install.
"
" mkdir ~/.vim/bundle
" cd ~/.vim/bundle
" git git://github.com/Shougo/neobundle.vim.git
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim
endif
call neobundle#begin(expand('~/.vim/bundle'))
NeoBundleFetch 'Shougo/neobundle.vim'
" List up below plugins which you wanna use it.
NeoBundle 'nathanaelkane/vim-indent-guides'
NeoBundle 'altercation/vim-colors-solarized'
NeoBundle 'chriskempson/vim-tomorrow-theme'
NeoBundle 'groovy.vim'
call neobundle#end()
filetype plugin indent on
NeoBundleCheck
"----------------------------------------------------------
" indent-guide
"----------------------------------------------------------
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_guide_size = 1
let g:indent_guides_start_level = 2
let g:indent_guides_auto_colors = 0
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=darkgray ctermbg=234
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=gray ctermbg=238
"==============================================================================
" Global
"==============================================================================
set nocompatible
set fileformats=unix,mac,dos
set vb t_vb=
set backspace=indent,eol,start
"==============================================================================
" Backup
"==============================================================================
set nobackup
set writebackup
"set backup
"set backupdir=~/backup
"set directory=~/swap
"==============================================================================
" Search
"==============================================================================
set history=100
set ignorecase
set smartcase
set wrapscan
set noincsearch
"==============================================================================
" Visual
"==============================================================================
set title
set number
set ruler
set list
set listchars=tab:>-,trail:-,eol:↩,extends:>,precedes:<,nbsp:%
set showcmd
set laststatus=2
set showmatch
set matchtime=2
syntax on
set background=dark
colorscheme Tomorrow-Night-Bright
set hlsearch
highlight Comment ctermfg=DarkCyan
set wildmenu
set textwidth=0
set wrap
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=darkgray
match ZenkakuSpace / /
set statusline=%n\:%y%F\ \|%{(&fenc!=''?&fenc:&enc).'\|'.&ff.'\|'}%m%r%=<%l/%L:%p%%>
highlight StatusLine term=NONE cterm=NONE ctermfg=black ctermbg=white
"==============================================================================
" Indent
"==============================================================================
set noautoindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
"==============================================================================
" Internationalization
"==============================================================================
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,euc-jp,cp932,iso-2022-jp
set fileencodings+=,ucs-2le,ucs-2
"==============================================================================
" Auto Command execution
"==============================================================================
if has("autocmd")
filetype plugin indent on
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif
endif
"==============================================================================
" Others
"==============================================================================
set hidden
set shortmess+=I
"__END__