Skyler Grey | 35e8c88 | 2023-01-26 00:37:03 +0000 | [diff] [blame] | 1 | fun! g:SetupCommandAlias(from, to) |
2 | exec 'cnoreabbrev <expr> '.a:from | ||||
3 | \ .' ((getcmdtype() is# ":" && getcmdline() is# "'.a:from.'")' | ||||
4 | \ .'? ("'.a:to.'") : ("'.a:from.'"))' | ||||
5 | endfun | ||||
6 | |||||
7 | function g:Highlight(group, fg, bg) | ||||
8 | exec ("autocmd ColorScheme onehalfdark highlight! " . a:group . " ctermfg=" . a:fg.cterm . " ctermbg=" . a:bg.cterm . " guifg=" . a:fg.gui . " guibg=" . a:bg.gui) | ||||
9 | endfunction | ||||
10 |