-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
79 lines (65 loc) · 1.88 KB
/
Copy pathvimrc
File metadata and controls
79 lines (65 loc) · 1.88 KB
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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'Shougo/neocomplcache.vim'
Bundle 'Valloric/YouCompleteMe'
Bundle 'scrooloose/syntastic'
Bundle 'tomasr/molokai'
Bundle 'hdima/python-syntax'
Bundle 'scrooloose/nerdtree'
Bundle 'scrooloose/nerdcommenter'
Bundle 'vim-scripts/matchit.zip'
Bundle 'Raimondi/delimitMate'
Bundle 'plasticboy/vim-markdown'
Bundle 'pangloss/vim-javascript'
Bundle 'nono/jquery.vim'
Bundle 'thiderman/nginx-vim-syntax'
Bundle 'hynek/vim-python-pep8-indent'
Bundle 'Yggdroot/indentLine'
filetype plugin indent on
if executable('ctags')
Bundle 'majutsushi/tagbar'
endif
" tagbar setting
map <leader>tt :TagbarToggle<CR>
" ycm setting
let g:ycm_filetype_blacklist = {'css':1, 'html':1, 'markdown':1, 'javascript': 1, 'xml':1, 'vim':1}
" neocomplache setting
let g:neocomplcache_enable_at_startup = 1
autocmd FileType python let g:neocomplcache_enable_at_startup = 0
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
" syntastic setting
let g:syntastic_python_checkers=['flake8', 'python']
let g:syntastic_auto_loc_list = 1
" nerdtree setting
map <leader>e :NERDTreeToggle<CR>
" basic setting
set shiftwidth=4
set smarttab
set smartindent
set expandtab
set hlsearch
set ignorecase
set incsearch
set smartcase
set backspace=indent,eol,start " delete indent
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
map <Space> <C-f>
autocmd FileType python set colorcolumn=80
" tab setting
autocmd FileType javascript,html,xml set shiftwidth=2
" fold setting
autocmd FileType python set fdm=indent
" color setting
syntax on
set background=dark
color molokai
" indent line setting
let g:indentLine_color_term = 239