Commit 0bcc24f6 authored by Murukesh Mohanan's avatar Murukesh Mohanan

I am complete

parent 07e597ad
......@@ -62,3 +62,6 @@
[submodule "bundle/vim-go"]
path = bundle/vim-go
url = https://github.com/fatih/vim-go.git
[submodule "bundle/YouCompleteMe"]
path = bundle/YouCompleteMe
url = https://github.com/Valloric/YouCompleteMe.git
YouCompleteMe @ 3bed9f25
Subproject commit 3bed9f2570e35f152a8492c4affac1e3c7c48797
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
let g:go_fmt_command = "goimports"
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' : 'gotags',
\ 'ctagsargs' : '-sort -silent'
\ }
......@@ -66,10 +66,17 @@ function! s:Help2Url (...)
exec "normal \<c-T>"
endif
let l:tagfile = expand ('%:t')
let @* = expand ('<cword>')
python import urllib
let @* = pyeval ('urllib.quote_plus ("' . @* . '")')
let @* = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @*)
if ! empty ($DISPLAY)
let @* = expand ('<cword>')
python import urllib
let @* = pyeval ('urllib.quote_plus ("' . @* . '")')
let @* = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @*)
else
let @a = expand ('<cword>')
python import urllib
let @a = pyeval ('urllib.quote_plus ("' . @a . '")')
let @a = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @a)
endif
endfunction
command! -nargs=? -complete=help H call s:Help2Url (<f-args>)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment