/vim-data-section-simple

Syntax plugin for __DATA__ to use with Data::Section::Simple.

Primary LanguageVim script

vim-data-section-simple

Syntax plugin for __DATA__ to use with Data::Section::Simple.

What's this?

This plugin can highlight the __DATA__ block with the specified syntax (default: perl). It detects the format of Data::Section::Simple.

スクリーンショット 0001-07-31 10 34 46

How to use

  1. Clone this repo.

  2. Write below in your vimrc.

    set runtimepath+=/path/to/this/repo

    or use your favorite plugin managers.

Customization

g:data_section_simple_syntax (default: perl)

You can highlight __DATA__ by your own syntax with this option. When you set let g:data_section_simple_syntax = 'markdown' before opening files, __DATA__ will be highlighed as Markdown.

スクリーンショット 0001-07-31 10 46 22

Vim evaluates this variable every time when it opens the file. So you can choose __DATA__ syntax before opening each file or re-editing it by :e %.