Created
August 31, 2015 17:53
-
-
Save derekparker/d17cbc360104bf90fe60 to your computer and use it in GitHub Desktop.
.vimrc.local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set nolist | |
" set background=dark | |
colorscheme apprentice | |
let g:go_fmt_command = "goimports" | |
filetype plugin indent on | |
let delimitMate_expand_cr = 1 | |
let delimitMate_jump_expansion = 1 | |
noremap <C-f> <C-^> | |
noremap <leader>T :GoTestFunc<enter> | |
noremap <leader>t :GoTest<enter> | |
noremap <leader>d :GoDef<enter> | |
noremap <leader>i :GoInfo<enter> | |
noremap ! :! | |
noremap cc S | |
noremap gc gcc | |
set guioptions=gmL | |
" Essentially turn off non-context as-you-type completion | |
let g:ycm_min_num_of_chars_for_completion = 99 | |
" Add the :Man command | |
" runtime ftplugin/man.vim | |
set guifont=Source\ Code\ Pro:h15 | |
function! SyntaxAttr() | |
let synid = "" | |
let guifg = "" | |
let guibg = "" | |
let gui = "" | |
let id1 = synID(line("."), col("."), 1) | |
let tid1 = synIDtrans(id1) | |
if synIDattr(id1, "name") != "" | |
let synid = "group: " . synIDattr(id1, "name") | |
if (tid1 != id1) | |
let synid = synid . '->' . synIDattr(tid1, "name") | |
endif | |
let id0 = synID(line("."), col("."), 0) | |
if (synIDattr(id1, "name") != synIDattr(id0, "name")) | |
let synid = synid . " (" . synIDattr(id0, "name") | |
let tid0 = synIDtrans(id0) | |
if (tid0 != id0) | |
let synid = synid . '->' . synIDattr(tid0, "name") | |
endif | |
let synid = synid . ")" | |
endif | |
endif | |
" Use the translated id for all the color & attribute lookups; the linked id yields blank values. | |
if (synIDattr(tid1, "fg") != "" ) | |
let guifg = " guifg=" . synIDattr(tid1, "fg") . "(" . synIDattr(tid1, "fg#") . ")" | |
endif | |
if (synIDattr(tid1, "bg") != "" ) | |
let guibg = " guibg=" . synIDattr(tid1, "bg") . "(" . synIDattr(tid1, "bg#") . ")" | |
endif | |
if (synIDattr(tid1, "bold" )) | |
let gui = gui . ",bold" | |
endif | |
if (synIDattr(tid1, "italic" )) | |
let gui = gui . ",italic" | |
endif | |
if (synIDattr(tid1, "reverse" )) | |
let gui = gui . ",reverse" | |
endif | |
if (synIDattr(tid1, "inverse" )) | |
let gui = gui . ",inverse" | |
endif | |
if (synIDattr(tid1, "underline")) | |
let gui = gui . ",underline" | |
endif | |
if (gui != "" ) | |
let gui = substitute(gui, "^,", " gui=", "") | |
endif | |
echohl MoreMsg | |
let message = synid . guifg . guibg . gui | |
if message == "" | |
echohl WarningMsg | |
let message = "<no syntax group here>" | |
endif | |
echo message | |
echohl None | |
endfunction | |
noremap <leader>S :call SyntaxAttr()<enter> | |
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | |
let g:UltiSnipsExpandTrigger="<c-k>" | |
let g:UltiSnipsJumpForwardTrigger="<c-k>" | |
let g:UltiSnipsJumpBackwardTrigger="<c-z>" | |
" If you want :UltiSnipsEdit to split your window. | |
let g:UltiSnipsEditSplit="vertical" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment