Ⅰ. 插件描述
syntax highlighting and filetype detection for systemd unit filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'wgwoods/vim-systemd-syntax-who-speaks'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'wgwoods/vim-systemd-syntax-who-speaks'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'wgwoods/vim-systemd-syntax-who-speaks'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/wgwoods/vim-systemd-syntax
Ⅳ. 文档说明
# 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
- Set up pathogen
cd ~/.vim/bundle; git clone https://github.com/wgwoods/vim-systemd-syntax
Or just drop the two .vim files in ~/.vim/syntax and ~/.vim/ftdetect
- I'm sure you'll figure it out, you red-hot vim hacker you.
History
I split this out of https://github.com/wgwoods/vim-scripts because it turns out
people were (re)packaging it separately?
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.vimfor us
License
Distributed under the same terms as vim itself.