Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

vim syntax highlighting #880

Closed
messizqin opened this issue Nov 11, 2020 · 6 comments
Closed

vim syntax highlighting #880

messizqin opened this issue Nov 11, 2020 · 6 comments

Comments

@messizqin
Copy link

Bro, this is incredible.

I wonder if I can use vim editor inside eDEX with syntax colour highlighting, I have read following issues:

I did not find a very practical way. I am currently on MacOS and have installed the disc image file rather than node js build.

What I did next, was installing horizon theme, however, when I rum vim I still cannot see any colour highlighting.

Screen Shot 2020-11-12 at 12 23 04 am

It's an awesome app and I will be so appreciated if you offer some help.

@messizqin
Copy link
Author

You mentioned Nord and Chalkboard has colour feature enabled in 463, but it did not work on my machine, neither on nano nor on vim.

Screen Shot 2020-11-12 at 1 01 21 am

@Animus-Surge
Copy link
Contributor

Have you tried reading this: https://linuxhint.com/vim_syntax_highlighting/ ?

Maybe the syntax highlighting's off for your version of vim.

@messizqin
Copy link
Author

messizqin commented Nov 12, 2020

@Animus-Surge Thanks for your suggestion, I have thought about it, I am certain that my vim syntax highlighting is enabled.

Screen Shot 2020-11-12 at 11 11 44 am

@messizqin
Copy link
Author

messizqin commented Nov 12, 2020

I doubted if that was due to my customise shell appearance setting. After I restore it to default, the syntax was still not highlighted.

@messizqin
Copy link
Author

messizqin commented Nov 12, 2020

🌹 vim -version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Jun  5 2020 21:30:37)
Garbage after option argument: "-version"
More info with: "vim -h"

with a reference to enable vim syntax highlighting SO, I believe I have enabled it properly.

@messizqin
Copy link
Author

messizqin commented Nov 12, 2020

My first test run was on python, now I I have run tests on node js, c, ruby. notice my theme is horizon-full, and the result of whether syntax highlighting works in eDEX-UI vim editor followed by:

  1. python NOT working
  2. javascript working
  3. json working
  4. ruby NOT working
  5. c working

and whether syntax highlighting works in terminal vim editor followed by:

  1. python NOT working
  2. javascript working
  3. json working
  4. ruby NOT working
  5. c working

Now I realise that just like what @Animus-Surge said, the issue may due to vim

The solution is:

https://stackoverflow.com/questions/3853028/how-to-force-vim-to-syntax-highlight-a-file-as-html

Repository owner deleted a comment from GearHead001 Nov 12, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Animus-Surge @messizqin and others