luochen1990 / rainbow

Rainbow Parentheses Improved, shorter code, no level limit, smooth and fast, powerful configuration.
Apache License 2.0
1.78k stars 95 forks source link

[Bug] Same operation and files cannot work under Linux, but work well on windows7/10 #147

Open tankb52 opened 4 years ago

tankb52 commented 4 years ago

Describe the bug

First , I build the profile on windows 10,it work well.
Then copy the vim profile my Debian 10 (buster) : WM: Openbox; gVim 8.1.1401.
It doesn't work. But copy the vim profile to windows 7 ,it work well.

Rainbow Parentheses can work well on my Linux

Last I delete all , and copy your configure to my ~/.gvimrc and ~/.vim/vimrc, It doesn't work either.

tankb52 commented 4 years ago

Rainbow work well by vim: use ~/.vim/vimrc. Rainbow Parentheses work well by gvim: use ~/.gvimrc.

luochen1990 commented 4 years ago

Is there any error message?

tankb52 commented 4 years ago

Is there any error message?

Maybe there is something wrong with my configuration. Today I delete gvimrc, let gvim use vimrc . It works.

but when I run gvim for the first time after deketed gvimrc. the "(((())))" in my test file is not colored, other symbol such as <<<<>>>>, [[[[]]]],{{{{}}}} has colored. then I changed colorscheme by cli ":colorscheme xxxx", all symbol has colored as exoected. Now I test it many times, and it work well.

tankb52 commented 4 years ago

Supplement :These is no error message when it is not working.

tankb52 commented 4 years ago

Is there any error message?

Maybe there is something wrong with my configuration. Today I delete gvimrc, let gvim use vimrc . It works.

but when I run gvim for the first time after deketed gvimrc. the "(((())))" in my test file is not colored, other symbol such as <<<<>>>>, [[[[]]]],{{{{}}}} has colored. then I changed colorscheme by cli ":colorscheme xxxx", all symbol has colored as exoected. Now I test it many times, and it work well.

Step:

  1. Run gvim, open a file .
  2. open test file contain symbol by cli like ":e test.txt" .
  3. Now it is not working. need change colorscheme by cli "colorscheme xxxxx".
luochen1990 commented 2 years ago

It seems that there is something wrong with your file detection, can you check your filetype-detected-by-vim via :set ft.

Sorry for the very very late response, I'm not sure if you are still waiting for the solution, but this response might also help others who has similar issue :)