Re: how to display different color in vi

2015-01-05 Thread Charles Campbell
skyworld wrote: > Hi John, > > thanks for your help. I have tried several times, but always failed. > > 1. I first tried to set "abc" in my file to be red as: > > :match abc /\/ > > the system seems to be idle and there is no response. > > 2. I checked help with "match" command and tried its examp

Re: how to display different color in vi

2014-12-25 Thread skyworld
Thank you everyone for your kind help. Until now I only succeeded in Sven's method. I guess what I should do in the future is: :syn match search_pattern "\" :hi search_pattern ctermbg=color guibg=color Is this correct? thanks 在 2014年12月24日星期三UTC+8下午5时14分02秒,skyworld写道: > Hi, > > normally I

Re: how to display different color in vi

2014-12-25 Thread Marcin Szamotulski
On 01:12 Thu 25 Dec , skyworld wrote: > Hi John, > > thanks for your help. I have tried several times, but always failed. > > 1. I first tried to set "abc" in my file to be red as: > > :match abc /\/ > > the system seems to be idle and there is no response. > > 2. I checked help with "mat

Re: how to display different color in vi

2014-12-25 Thread Loïc Lefloch
Hello, There is this plugin : https://github.com/gorodinskiy/vim-coloresque Maybe it can help you -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php ---

Re: how to display different color in vi

2014-12-25 Thread Sven Guckes
* skyworld [2014-12-25 10:52]: > I have tried several times, but always failed. > :match abc /\/ > :highlight abc ctermbg=green guibg=green > :match abc /\/ here we go.. :syn match yellow "\" :hiyellow ctermbg=yellow guibg=yellow :syn match red"\" :hiredctermbg=re

Re: how to display different color in vi

2014-12-25 Thread skyworld
Hi John, thanks for your help. I have tried several times, but always failed. 1. I first tried to set "abc" in my file to be red as: :match abc /\/ the system seems to be idle and there is no response. 2. I checked help with "match" command and tried its example: :highlight abc ctermbg=green

RE: how to display different color in vi

2014-12-24 Thread John Beckett
skyworld wrote: > normally I use gvim instead of vi. My question is for gvim is: > can i use different color to show diffent word? For example, > I would like to highlight word "red" with red and "yellow" > with color yellow in one document. Is this possible? The tip for that is: http://vim.wikia

how to display different color in vi

2014-12-24 Thread skyworld
Hi, normally I use gvim instead of vi. My question is for gvim is: can i use different color to show diffent word? For example, I would like to highlight word "red" with red and "yellow" with color yellow in one document. Is this possible? thanks -- -- You received this message from th