Bug 361127 - VIM highlighting is different than original VIM
Summary: VIM highlighting is different than original VIM
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: syntax (other bugs)
Version First Reported In: 5.0.0
Platform: Other Linux
: LO wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-29 08:22 UTC by Matteo Croce
Modified: 2018-10-24 13:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.50
Sentry Crash Report:


Attachments
kate highlighting (22.67 KB, image/png)
2016-03-29 08:23 UTC, Matteo Croce
Details
vim highlighting (17.48 KB, image/png)
2016-03-29 08:23 UTC, Matteo Croce
Details
kate shell highlighting (44.28 KB, image/png)
2016-07-03 22:18 UTC, Matteo Croce
Details
vim shell highlighting (60.40 KB, image/png)
2016-07-03 22:19 UTC, Matteo Croce
Details
vim makefile highlighting (51.95 KB, image/png)
2016-07-05 12:59 UTC, Matteo Croce
Details
kate makefile highlighting (81.02 KB, image/png)
2016-07-05 13:00 UTC, Matteo Croce
Details
screenshot (92.97 KB, image/png)
2018-10-24 13:26 UTC, Matteo Croce
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Croce 2016-03-29 08:22:39 UTC
The VIM color scheme is way different than the real one

Reproducible: Always
Comment 1 Matteo Croce 2016-03-29 08:23:06 UTC
Created attachment 98131 [details]
kate highlighting
Comment 2 Matteo Croce 2016-03-29 08:23:25 UTC
Created attachment 98132 [details]
vim highlighting
Comment 3 Buovjaga 2016-07-02 10:56:05 UTC
Could you include the example file to speed up testing?
Comment 4 Dominik Haumann 2016-07-03 10:58:20 UTC
Well, also the vim highlighting depends on the color scheme that is chosen in vim. And that also may differ, depending on the default color scheme the distribution ships, so it's hard to have 100% feature parity. This is not really a bug - but should probably be changed anyways.

Can you change the colors, and then send us your "Vim Dark" section of your kateschemarc file? (Only change the default styles, not the syntax highlighting for each language itself).
Comment 5 Matteo Croce 2016-07-03 22:12:07 UTC
Now I'm on another PC with Kate 15.12.3
Color scheme is better but still different to vim for C files, but is almost unreadable for shell scripts because of the dark gray "echo" and [] on black background
This is my "vim dark" scheme:

[Vim (dark)]
ShippedDefaultSchema=6000
Color Background=0,0,0
Color Code Folding=0,43,38
Color Highlighted Bracket=68,0,170
Color Highlighted Line=23,0,59
Color Icon Bar=0,0,0
Color Indentation Line=42,0,210
Color Line Number=0,93,122
Color MarkType1=0,0,255
Color MarkType2=255,0,0
Color MarkType3=255,255,0
Color MarkType4=255,0,255
Color MarkType5=160,160,164
Color MarkType6=0,255,0
Color MarkType7=255,0,0
Color Modified Lines=84,255,84
Color Replace Highlight=84,255,84
Color Saved Lines=84,84,255
Color Search Highlight=255,255,0
Color Selection=35,35,35
Color Spelling Mistake Line=255,0,0
Color Tab Marker=65,65,65
Color Template Background=204,204,204
Color Template Editable Placeholder=204,255,204
Color Template Focused Editable Placeholder=102,255,102
Color Template Not Editable Placeholder=255,204,204
Color Word Wrap Marker=38,38,38
Comment 6 Matteo Croce 2016-07-03 22:18:41 UTC
Created attachment 99838 [details]
kate shell highlighting
Comment 7 Matteo Croce 2016-07-03 22:19:03 UTC
Created attachment 99839 [details]
vim shell highlighting
Comment 8 Matteo Croce 2016-07-05 12:59:19 UTC
Created attachment 99855 [details]
vim makefile highlighting
Comment 9 Matteo Croce 2016-07-05 13:00:16 UTC
Created attachment 99856 [details]
kate makefile highlighting
Comment 10 Dominik Haumann 2016-07-07 18:23:08 UTC
Sorry, I forgot to add that you also need to attach from katesyntaxhighlightingrc this section:
[Default Item Styles - Schema Vim (Dark)]
Comment 11 Matteo Croce 2016-07-07 18:28:19 UTC
Here is it:

# Vim (dark), Default Item Styles
[Default Item Styles - Schema Vim (dark)]
Alert=ffbf0303,ffbf0303,1,,,,fff7e6e6,-,,---
Base-N Integer=ffff54ff,ffff54ff,1,,,,-,-,,---
Character=ffff54ff,ffff54ff,1,,,,-,-,,---
Comment=ff5454ff,ff5454ff,1,,,,-,-,,---
Data Type=ff54ff54,ff54ff54,1,,,,-,-,,---
Decimal/Value=ffff54ff,ffff54ff,1,,,,-,-,,---
Error=ffbf0303,ffbf0303,0,0,0,,-,-,,---
Floating Point=ffff54ff,ffff54ff,1,,,,-,-,,---
Function=ff644a9b,ff644a9b,,,,,-,-,,---
Keyword=ffdede49,ffdede49,1,,,,-,-,,---
Normal=ffb2b2b2,ffb2b2b2,1,0,,,-,-,,---
Others=ff006e28,ff006e28,,,,,-,-,,---
Region Marker=ff0095ff,ff0095ff,1,,,,ff22226d,-,,---
String=ffaf7f00,ffaf7f00,1,,,,-,-,,---
Comment 12 Dominik Haumann 2018-08-15 09:37:59 UTC
Git commit 36f03120889b8cba042603e990df737365f3363b by Dominik Haumann.
Committed on 15/08/2018 at 09:37.
Pushed by dhaumann into branch 'master'.

Improve vim color theme

M  +3    -3    src/data/katesyntaxhighlightingrc

https://commits.kde.org/ktexteditor/36f03120889b8cba042603e990df737365f3363b
Comment 13 Matteo Croce 2018-10-24 13:26:13 UTC
Created attachment 115873 [details]
screenshot

Color schemeis way very different than VIM one,
eg. strings are brown instead of pink