-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
executable file
·120 lines (99 loc) · 2.83 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
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundles/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('~/.vim/bundles')
call dein#begin('~/.vim/bundles')
" Let dein manage dein
" Required:
call dein#add('~/.vim/bundles/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
" You can specify revision/branch/tag.
call dein#add('Shougo/vimshell', { 'rev': '3787e5' })
call dein#add('Shougo/neocomplcache.vim')
call dein#add('Shougo/neocomplcache-rsense.vim')
call dein#add('thinca/vim-quickrun')
call dein#add('tpope/vim-rails')
call dein#add('tpope/vim-surround')
call dein#add('tpope/vim-endwise.git')
call dein#add('tpope/vim-fugitive')
" Required:
call dein#end()
call dein#save_state()
endif
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
"if dein#check_install()
" call dein#install()
"endif
"End dein Scripts-------------------------
filetype plugin indent on
syntax enable
"
"set t_Co=256
"colorscheme molokai
set encoding=utf-8
set fileencodings=utf-8,iso-2022-jp,euc-jp,sjis
set nopaste
set nobomb
set backspace=2
set cmdheight=2
set noswapfile
set nobackup
set nowritebackup
set hidden
set ignorecase
set noincsearch
set smartcase
set wrapscan
set number
highlight ZenkakuSpace guibg=white
highlight ZenkakuSpace ctermbg=white
match ZenkakuSpace /!!/
"
"syntax on
autocmd! BufRead,BufNewFile *.t.html set filetype=html
autocmd! BufRead,BufNewFile *.erb set filetype=html
set hlsearch
"set listchars=tab:*-,extends:~,trail:_
"set list
set ruler
set expandtab
set smarttab
set tabstop=2
set softtabstop=2
set shiftwidth=2
set showmatch
set showmode
set showcmd
""検索highlightを消す
nmap <Esc><Esc> :nohlsearch<CR><Esc>
" neocomplcacheの設定
" Disable AutoComplPop.
let g:acp_enableAtStartup = 0
" Use neocomplcache.
let g:neocomplcache_enable_at_startup = 1
" Use smartcase.
let g:neocomplcache_enable_smart_case = 1
" Set minimum syntax keyword length.
let g:neocomplcache_min_syntax_length = 3
let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'
let g:neocomplcache_enable_camel_case_completion = 1
let g:neocomplcache_enable_underbar_completion = 1
" Rsense用の設定
if !exists('g:neocomplcache_omni_patterns')
let g:neocomplcache_omni_patterns = {}
endif
let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
"rsenseのインストールフォルダがデフォルトと異なるので設定
"let g:rsenseHome = expand("*Rsenseのインストールパスをここにペースト*")
let g:rsenseUseOmniFunc = 1
autocmd QuickFixCmdPost *grep* cwindow