Skip to content

Instantly share code, notes, and snippets.

@aoli-al
Created April 25, 2016 03:25
Show Gist options
  • Save aoli-al/b4f0bcfccacecab5a288c360ed72c951 to your computer and use it in GitHub Desktop.
Save aoli-al/b4f0bcfccacecab5a288c360ed72c951 to your computer and use it in GitHub Desktop.
set clipboard=unnamed
let g:go_bin_path = expand("~/.gotools")
set expandtab
set smarttab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set shortmess=a
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)
let g:go_disable_autoinstall = 0
" Highlight
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
" YCM
let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'
let g:ycm_filetype_specific_completion_to_diable = {
\'python': 1
\}
" Pylint
let g:pymode_lint_config = '$HOME/.pylint.rc'
let g:pymode_options_max_line_length = 120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment