Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (66 sloc) 1.95 KB
# Re:View
[[plugins]]
repo = 'tokorom/vim-review'
on_ft = ['review']
hook_add = '''
function! FoldReVIEW(lnum)
let line = getline(a:lnum)
let next = getline(a:lnum + 1)
if line =~ '^=\{1} [^=]\+'
return 1
elseif next =~ '^=\{1} [^=]\+'
return '<1'
elseif line =~ '^=\{2} [^=]\+'
return 2
elseif next =~ '^=\{2} [^=]\+'
return '<2'
elseif line =~ '^=\{3} [^=]\+'
return 3
elseif next =~ '^=\{3} [^=]\+'
return '<3'
elseif line =~ '^=\{4} [^=]\+'
return 4
elseif next =~ '^=\{4} [^=]\+'
return '<4'
endif
return '='
endfunction
set foldmethod=expr foldexpr=FoldReVIEW(v:lnum)
'''
# Golang
[[plugins]]
repo = 'fatih/vim-go'
on_ft = ['go','golang']
hook_add = '''
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_fields = 1
let g:go_highlight_types = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
let g:go_fmt_command = 'goimports'
let g:go_metalinter_autosave = 1
let g:go_metalinter_autosave_enabled = ['vet', 'golint', 'errcheck', 'deadcode', 'structcheck', 'dupl', 'interfacer', 'goconst']
let g:go_metalinter_enabled = ['vet', 'golint', 'errcheck', 'deadcode', 'structcheck', 'dupl', 'interfacer', 'goconst']
let g:go_metalinter_deadline = '30s'
filetype off
filetype plugin indent off
set runtimepath+=/usr/local/go/misc/vim
au FileType go setlocal sw=4 ts=4 sts=4 noet
au FileType go setlocal makeprg=go\ build\ ./... errorformat=%f:%l:\ %m
au FileType go nmap <F12> <Plug>(go-build)
au FileType go nmap <F5> <Plug>(go-run)
filetype plugin indent on
syntax on
let g:go_doc_keywordprg_enabled = 0
'''
# markdown
[[plugin]]
repo = 'godlygeek/tabular'
on_ft = ['md','markdown']
[[plugin]]
repo = 'plasticboy/vim-markdown'
on_ft = ['md','markdown']
# Vue
[[plugins]]
repo = 'posva/vim-vue'
You can’t perform that action at this time.