diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-05-24 22:50:24 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-05-24 22:50:24 -0700 |
commit | fe6d099b78b1ab9a0868791bec5cf3ea92361d6f (patch) | |
tree | c904c84c60b4d7b12d99205f4e4a4686ef1538db /mu.vim | |
parent | bfcbdf0e0af4e4aa12771c9be92742e52bca12a8 (diff) | |
download | mu-fe6d099b78b1ab9a0868791bec5cf3ea92361d6f.tar.gz |
6399 - make mu.vim work better out of the box
Adding some more colors will improve the experience, but the choices depend on colorscheme, and first impressions should at least not seem to have degraded things.
Diffstat (limited to 'mu.vim')
-rw-r--r-- | mu.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mu.vim b/mu.vim index c0bddc93..bbbaebec 100644 --- a/mu.vim +++ b/mu.vim @@ -7,6 +7,10 @@ " Copy this file into your ftplugin directory, and add the following to your " vimrc or to .vim/ftdetect/mu.vim: " autocmd BufReadPost,BufNewFile *.mu set filetype=mu +" +" Some highlight groups you might want to select colors for in your vimrc: +" muFunction +" muTest let s:save_cpo = &cpo set cpo&vim @@ -53,10 +57,10 @@ syntax keyword muKeyword fn type var highlight link muKeyword PreProc syntax match muFunction "\(fn\s*\)\@<=\(\S\+\)" -highlight muFunction cterm=underline ctermfg=130 +highlight link muFunction Identifier syntax match muTest "\(fn\s*\)\@<=\(test-\S\+\)" -highlight muTest ctermfg=64 +highlight link muTest Identifier syntax match muData "^type\>" syntax match muData "\<eax\>\|\<ecx\>\|\<edx\>\|\<ebx\>\|\<esi\>\|\<edi\>" |