about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-06 15:27:27 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-06 15:27:30 -0700
commitc5983ab3cc60be25842ea8da12f7b3b7b450a390 (patch)
tree183bb37c659665df88a347b8ce54f93ed1d6afdc
parent11162888713dfbec6509c6c460c99f396f474ef0 (diff)
downloadmu-c5983ab3cc60be25842ea8da12f7b3b7b450a390.tar.gz
nicer onboarding experience with Vim
Thanks Sumeet Agarwal (https://github.com/sumeet) for helping catch this.
-rw-r--r--editor/mu.vim6
-rw-r--r--editor/subx.vim28
2 files changed, 20 insertions, 14 deletions
diff --git a/editor/mu.vim b/editor/mu.vim
index 1c468aea..413b31b4 100644
--- a/editor/mu.vim
+++ b/editor/mu.vim
@@ -9,8 +9,10 @@
 "   autocmd BufReadPost,BufNewFile *.mu set filetype=mu
 "
 " Some highlight groups you might want to select colors for in your vimrc:
-"   muFunction
-"   muTest
+highlight link CommentedCode Comment
+highlight link SalientComment Comment
+highlight link muFunction Identifier
+highlight link muTest Identifier
 
 let s:save_cpo = &cpo
 set cpo&vim
diff --git a/editor/subx.vim b/editor/subx.vim
index a773e127..6a5f9f16 100644
--- a/editor/subx.vim
+++ b/editor/subx.vim
@@ -7,15 +7,19 @@
 " Copy this file into your ftplugin directory, and add the following to your
 " vimrc or to .vim/ftdetect/subx.vim:
 "   autocmd BufReadPost,BufNewFile *.subx set filetype=subx
-"
+
 " Some highlight groups you might want to select colors for in your vimrc:
-"   subxFunction
-"   subxMinorFunction
-"   subxTest
-"
-" Optionally, devote more colors to different kinds of comments. Some suggestions
-" for 256-color terminals to add to your vimrc:
-"   blue tones:
+highlight link CommentedCode Comment
+highlight link SalientComment Comment
+highlight link subxFunction Identifier
+highlight link subxMinorFunction Identifier
+highlight link subxTest Identifier
+highlight link subxH1Comment Comment
+highlight link subxComment Comment
+highlight link subxS1Comment Comment
+highlight link subxS2Comment Comment
+" Some suggestions for 256-color terminals to add to your vimrc:
+"   blue tones
 "     highlight subxH1Comment cterm=underline ctermfg=27
 "     highlight subxComment ctermfg=27
 "     highlight subxS1Comment ctermfg=19
@@ -26,10 +30,10 @@
 "     highlight subxS1Comment ctermfg=19
 "     highlight subxS2Comment ctermfg=245
 "   grey tones
-"    highlight subxH1Comment cterm=bold,underline
-"    highlight subxComment cterm=bold ctermfg=236
-"    highlight subxS1Comment cterm=bold ctermfg=242
-"    highlight subxS2Comment ctermfg=242
+"     highlight subxH1Comment cterm=bold,underline
+"     highlight subxComment cterm=bold ctermfg=236
+"     highlight subxS1Comment cterm=bold ctermfg=242
+"     highlight subxS2Comment ctermfg=242
 
 let s:save_cpo = &cpo
 set cpo&vim