-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
71 lines (54 loc) · 1.34 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
set nocompatible
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-vividchalk'
Plug 'tpope/vim-unimpaired'
Plug 'kien/ctrlp.vim'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'Chiel92/vim-autoformat'
" html, css
Plug 'othree/html5.vim'
Plug 'hail2u/vim-css3-syntax'
Plug 'skammer/vim-css-color'
" php
Plug 'shawncplus/phpcomplete.vim'
Plug 'captbaritone/better-indent-support-for-php-with-html'
" go
Plug 'fatih/vim-go'
call plug#end()
set nobackup
set noswapfile
set number
set autochdir
set tabstop=4
set softtabstop=4
set shiftwidth=4
set noexpandtab
set hidden
set laststatus=2
set showmode
set omnifunc=syntaxcomplete#Complete
autocmd FileType php setlocal omnifunc=phpcomplete#CompletePHP
autocmd FileType go setlocal omnifunc=go#complete#Complete
set completeopt=longest,menuone
" vim-go
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
" html
let g:formatdef_htmlbeautify = '"html-beautify -f - -".(&expandtab ? "s ".shiftwidth() : "t")'
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
map <C-n> :NERDTreeToggle<CR>
noremap <F3> :Autoformat<CR>
syntax on
colorscheme vividchalk
if filereadable($HOME . "/.vimrc.local")
source ~/.vimrc.local
endif