Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A a11y-syntax-highlighting
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Byte Blaze
  • a11y-syntax-highlighting
  • Merge requests
  • !5

Add support for Vi/Vim

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/reubenlillie/add-vim into main Nov 05, 2022
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: reubenlillie

I modeled these color scheme files after the ones in the Vim repo. At the same time, I tried to simplify Vim’s list of highlight groups, focusing on HTML, CSS, JavaScript, and the ones Vim typically uses for web development.

This pull request does not include definitions for every highlight group available in Vim. That seemed outside the scope of an initial pull request. It does, however, account for the bulk of those highlight groups, primarily by linking to one of Vim’s preferred group names.

Because different editions of Vim support different color sets, I also tried to mimic the CSS definitions in the a11y /dist/highlight directory as much as possible. For example, most modern terminals use the 256 Xterm colors. Other terminals only have the 16 ANSI colors. This pull request does not include blocks for 8-color or single-color terminals.

I also added some inline comments, including a table with the different HEX, Xterm, and ANSI codes in play. Rather than listing the highlight groups in ROYGBIV order, I followed the Xterm/ANSI numbers. Then, I alphabetized the highlight groups under each color subhead.

There’s definitely room for expansion to these theme files. But this first pull request should be publishable.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/reubenlillie/add-vim