Bug 361127

Summary: VIM highlighting is different than original VIM
Product: [Applications] kate Reporter: Matteo Croce <rootkit85>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: ilmari.lauhakangas
Priority: LO    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.50
Sentry Crash Report:
Attachments: kate highlighting
vim highlighting
kate shell highlighting
vim shell highlighting
vim makefile highlighting
kate makefile highlighting
screenshot

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