From c5983ab3cc60be25842ea8da12f7b3b7b450a390 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 6 Jun 2021 15:27:27 -0700 Subject: [PATCH] nicer onboarding experience with Vim Thanks Sumeet Agarwal (https://github.com/sumeet) for helping catch this. --- editor/mu.vim | 6 ++++-- editor/subx.vim | 28 ++++++++++++++++------------ 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