配置按f5编译运行 按完f5后无法使用 也没有报错
map <F5> :call CompileRunGcc()<CR>
imap <F5> <esc> :call CompileRunGcc<CR>
func! CompileRunGcc()
exec"w"
if &filetype =='c'
exec"!g++ % -o %<"
exec"!time ./%<"
elseif &filetype =='cpp'
exec"!g++ % -o %<"
exec"!time ./%<"
elseif &filetype =='java'
exec"!javac %"
exec"!time java %<"
elseif &filetype =='sh'
:!time bash %
elseif &filetype =='python'
exec"!time python2.7 %"
elseif &filetype =='html'
exec"!firefox % &"
elseif &filetype =='go'
exec"!go build %<"
exec"!time go run %"
elseif &filetype =='mkd'
exec"!~/.vim/markdown.pl % > %.html &"
exec"!firefox %.html &"
elseif &filetype == 'lua'
exec"!time lua %"
endif
endfunc
```