-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanguage.vim
More file actions
92 lines (90 loc) · 2.83 KB
/
Copy pathlanguage.vim
File metadata and controls
92 lines (90 loc) · 2.83 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
80
81
82
83
84
85
86
87
88
89
90
91
92
"========================================}{
Plugin 'tpope/vim-surround'
"========================================}{
"Plugin 'posva/vim-vue'
Plugin 'darthmall/vim-vue'
"========================================}{
"Plugin 'digitaltoad/vim-jade'
"========================================}{
"Plugin 'wavded/vim-stylus'
"========================================}{
Plugin 'chrisbra/csv.vim'
"========================================}{
Plugin 'awk-support.vim'
"========================================}{
Plugin 'elzr/vim-json'
"========================================}{
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
"Plugin 'kchmck/vim-coffee-script'
"========================================}{
Plugin 'derekwyatt/vim-scala'
"========================================}{
" Zen
Plugin 'mattn/emmet-vim'
" activation key <C-Y><leader>
"let g:user_zen_expandabbr_key = '<c-j>'
"let g:use_zen_complete_tag = 1
"let g:no_html_toolbar = 'yes'
"let g:html_tag_case = 'lowercase'
"========================================}{
" PHP
Plugin 'rayburgemeestre/phpfolding.vim'
"let g:DisableAutoPHPFolding = 1
"========================================}{
" Twig
Plugin 'beyondwords/vim-twig'
autocmd BufNewFile,BufRead *.twig.htm set filetype=html.twig
"========================================}{
" golang
au FileType go nmap <Leader>ct :! gotags -R . > tags<CR>
Plugin 'fatih/vim-go'
au FileType go nmap <Leader>s <Plug>(go-implements)
au FileType go nmap <Leader>i <Plug>(go-info)
au FileType go nmap <Leader>gd <Plug>(go-doc)
au FileType go nmap <Leader>gv <Plug>(go-doc-vertical)
au FileType go nmap <Leader>gb <Plug>(go-doc-browser)
au FileType go nmap <leader>r <Plug>(go-run)
au FileType go nmap <leader>b <Plug>(go-build)
au FileType go nmap <leader>t <Plug>(go-test)
au FileType go nmap <leader>c <Plug>(go-coverage)
au FileType go nmap <Leader>ds <Plug>(go-def-split)
au FileType go nmap <Leader>dv <Plug>(go-def-vertical)
au FileType go nmap <Leader>dt <Plug>(go-def-tab)
au FileType go nmap <Leader>e <Plug>(go-rename)
let g:go_play_open_browser = 0
"let g:go_fmt_fail_silently = 1
let g:go_fmt_command = "goimports"
"let g:go_fmt_autosave = 0
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
" go tagbar
let g:tagbar_type_go = {
\ 'ctagstype' : 'go',
\ 'kinds' : [
\ 'p:package',
\ 'i:imports:1',
\ 'c:constants',
\ 'v:variables',
\ 't:types',
\ 'n:interfaces',
\ 'w:fields',
\ 'e:embedded',
\ 'm:methods',
\ 'r:constructor',
\ 'f:functions'
\ ],
\ 'sro' : '.',
\ 'kind2scope' : {
\ 't' : 'ctype',
\ 'n' : 'ntype'
\ },
\ 'scope2kind' : {
\ 'ctype' : 't',
\ 'ntype' : 'n'
\ },
\ 'ctagsbin' : '~/.go/bin/gotags',
\ 'ctagsargs' : '-sort -silent'
\ }
"========================================}{