Add settings for background.
This commit is contained in:
parent
16f84cb33c
commit
15599f5565
1 changed files with 32 additions and 31 deletions
|
@ -28,6 +28,7 @@ set guioptions-=l
|
||||||
set guioptions-=L
|
set guioptions-=L
|
||||||
|
|
||||||
" Colorscheme
|
" Colorscheme
|
||||||
|
autocmd vimenter * hi Normal guibg=NONE ctermbg=NONE " transparent bg
|
||||||
"set background=dark
|
"set background=dark
|
||||||
let ayucolor="light"
|
let ayucolor="light"
|
||||||
colorscheme ayu
|
colorscheme ayu
|
||||||
|
@ -206,26 +207,26 @@ imap <F5> <Esc>:call CompileRun()<CR>
|
||||||
vmap <F5> <Esc>:call CompileRun()<CR>
|
vmap <F5> <Esc>:call CompileRun()<CR>
|
||||||
|
|
||||||
func! CompileRun()
|
func! CompileRun()
|
||||||
exec "w"
|
exec "w"
|
||||||
if &filetype == 'c'
|
if &filetype == 'c'
|
||||||
exec "!gcc % -o %<"
|
exec "!gcc % -o %<"
|
||||||
exec "!time ./%<"
|
exec "!time ./%<"
|
||||||
elseif &filetype == 'cpp'
|
elseif &filetype == 'cpp'
|
||||||
exec "!g++ % -o %<"
|
exec "!g++ % -o %<"
|
||||||
exec "!time ./%<"
|
exec "!time ./%<"
|
||||||
elseif &filetype == 'java'
|
elseif &filetype == 'java'
|
||||||
exec "!javac %"
|
exec "!javac %"
|
||||||
exec "!time java %"
|
exec "!time java %"
|
||||||
elseif &filetype == 'sh'
|
elseif &filetype == 'sh'
|
||||||
exec "!time bash %"
|
exec "!time bash %"
|
||||||
elseif &filetype == 'python'
|
elseif &filetype == 'python'
|
||||||
exec "!time python3 %"
|
exec "!time python3 %"
|
||||||
elseif &filetype == 'html'
|
elseif &filetype == 'html'
|
||||||
exec "!google-chrome % &"
|
exec "!google-chrome % &"
|
||||||
elseif &filetype == 'go'
|
elseif &filetype == 'go'
|
||||||
exec "!go build %<"
|
exec "!go build %<"
|
||||||
exec "!time go run %"
|
exec "!time go run %"
|
||||||
elseif &filetype == 'matlab'
|
elseif &filetype == 'matlab'
|
||||||
exec "!time octave %"
|
exec "!time octave %"
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
Loading…
Reference in a new issue