Skip to content

syntax highlighting and filetype detection for systemd unit files

Notifications You must be signed in to change notification settings

wgwoods/vim-systemd-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-systemd-syntax

syntax highlighting and filetype detection for systemd unit files!

Features

  • Highlights known unit file directives and recognizeable values!
  • Marks errors due to invalid or misspelled options/values!
  • Over 80 hours of playtime!

Installation

You can install wgwoods/vim-systemd-syntax pretty easily with your favorite Vim plugin manager. (If you don't have one already, vim-plug is nice and simple.)

This should probably work too:

mkdir -p ~/.vim/plugin
cd ~/.vim/plugin
git clone https://github.com/wgwoods/vim-systemd-syntax

Or you can just drop the three .vim files in ~/.vim/syntax, ~/.vim/ftdetect, and /.vim/ftplugin manually. I'm sure you'll figure it out, you red-hot vim hacker you.

TODO

  • Add missing directives? (I haven't updated this since 2011. Pull requests welcome!)
  • Generate syntax from /usr/lib/systemd/systemd --dump-config so it's always up-to-date
    • Heck why doesn't systemd do that as part of its build?
  • Contribute script to systemd that generates syntax/systemd.vim for us
  • Retire to a life of leisure

License

Distributed under the same terms as vim itself.

About

syntax highlighting and filetype detection for systemd unit files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •