From 958e35fe4b6a6436b5ee6853fb3bc94cf8c4e2d8 Mon Sep 17 00:00:00 2001 From: shaoying Date: Fri, 20 Dec 2019 05:04:46 +0800 Subject: [PATCH] add color --- etc/conf/go.vim | 14 +++++++++++++- etc/conf/javasript.vim | 15 +++++++++++++-- etc/conf/vimrc | 2 +- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/etc/conf/go.vim b/etc/conf/go.vim index 243f6c5c..b7055441 100644 --- a/etc/conf/go.vim +++ b/etc/conf/go.vim @@ -1,2 +1,14 @@ -highlight goComment cterm=reverse ctermfg=yellow +syntax match Comment "Name: \"[^\"]*\"" +syntax match Comment "Help: \"[^\"]*\"" + +highlight kitConst ctermfg=yellow +syntax match kitConst "kit\.[a-zA-Z_.]*" + +highlight msgConst ctermfg=cyan +syntax match msgConst "m\.[a-zA-Z_.]*" +syntax match msgConst "msg\.[a-zA-Z_.]*" +syntax match msgConst "sub\.[a-zA-Z_.]*" + +" highlight iceConst ctermfg=darkgreen +" syntax match iceConst "ice\.[a-zA-Z_.]*" diff --git a/etc/conf/javasript.vim b/etc/conf/javasript.vim index 7b47b796..7de2b8a9 100644 --- a/etc/conf/javasript.vim +++ b/etc/conf/javasript.vim @@ -1,2 +1,13 @@ -highlight javaScriptComment cterm=reverse ctermfg=yellow -highlight Comment cterm=reverse ctermfg=yellow +highlight canConst ctermfg=yellow +syntax match canConst "can" +syntax match canConst "can\.base" +syntax match canConst "can\.core" +syntax match canConst "can\.misc" +syntax match canConst "can\.page" +syntax match canConst "can\.user" + +highlight msgConst ctermfg=cyan +syntax match msgConst "m\.[a-zA-Z_.]*" +syntax match msgConst "msg\.[a-zA-Z_.]*" +syntax match msgConst "sub\.[a-zA-Z_.]*" + diff --git a/etc/conf/vimrc b/etc/conf/vimrc index 3d349421..ae59747e 100644 --- a/etc/conf/vimrc +++ b/etc/conf/vimrc @@ -163,7 +163,7 @@ endif cnoremap RR :source ~/.vimrc colorscheme torte -highlight Comment cterm=reverse ctermfg=yellow +highlight Comment ctermfg=cyan ctermbg=darkblue "}}} " nnoremap :NERDTreeToggle