-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vimrc
116 lines (89 loc) · 2.53 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
"""""""""""""""""
" Vundle settings
"""""""""""""""""
filetype off
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/dotfiles/_vim/dein/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('~/dotfiles/_vim/dein')
call dein#begin('~/dotfiles/_vim/dein')
" Let dein manage dein
" Required:
call dein#add('~/dotfiles/_vim/dein/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here:
call dein#add('Shougo/dein.vim')
call dein#add('scrooloose/nerdtree')
call dein#add('davidhalter/jedi-vim')
call dein#add('jmcantrell/vim-virtualenv')
" 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-------------------------
"""""""""""""""""""""""""
" ZenCoding shortcut
let g:user_zen_expandabbr_key = '<C-y>'
syntax on
set number
set autoindent
set smartindent
set nowrap
"タブ
set expandtab "タブ入力をスペースにする
set tabstop=2 shiftwidth=2 softtabstop=2 autoindent
"検索
set incsearch
set ignorecase
set smartcase
set incsearch " do incremental searching
set hlsearch
" backspace
set backspace=indent,eol,start
""""""""""""""""
" キーマップ設定
""""""""""""""""
" タブ移動
nnoremap <C-n> gt
nnoremap <C-p> gT
"""""""""""
" 配色
"""""""""""
" vimdiff 関連
hi DiffAdd ctermfg=black ctermbg=2
hi DiffChange ctermfg=black ctermbg=3
hi DiffDelete ctermfg=black ctermbg=6
hi DiffText ctermfg=black ctermbg=7
" スペース表示
highlight JpSpace cterm=underline ctermfg=Blue guifg=Blue
au BufRead,BufNew * match JpSpace / /
set list
" twigファイル配色設定
autocmd BufWinEnter,BufNewFile *.twig set filetype=html
" nerdtree
autocmd VimEnter * execute 'NERDTree'
nnoremap <silent><C-e> :NERDTreeToggle<CR>
let NERDTreeShowHidden = 1
let NERDTreeIgnore=['\.pyc']
"-------------------------------------------------------------------------------
" 基本設定 Basics
"-------------------------------------------------------------------------------
let g:mapleader="," " キーマップリーダー
" jedi setting
let g:jedi#completions_command = "<C-k>"
let g:jedi#goto_assignments_command = "<C-g>"
let g:jedi#goto_definitions_command = "<C-d>"
" let g:jedi#documentation_command = "<C-k>"
" let g:jedi#documentation_command = 0
let g:jedi#popup_select_first = 0
let g:jedi#popup_on_dot = 0