Skip to content

maml-dev/vim-maml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAML for Vim and Neovim

Language support for MAML (Minimal Abstract Markup Language).

Features

  • Syntax highlighting — comments, strings, raw strings, escape sequences, numbers, booleans, null, keys
  • Indentation — auto-indent/dedent on {, [, }, ]
  • Folding — syntax-based folding for objects and arrays
  • Comment toggling — works with vim-commentary, Comment.nvim, etc. (gc)
  • Bracket matching — matchit support for {} and []

Installation

{ "maml-dev/vim-maml" }
Plug 'maml-dev/vim-maml'
use 'maml-dev/vim-maml'

Manual

Clone into your Vim/Neovim pack directory:

# Neovim
git clone https://github.com/maml-dev/vim-maml \
  ~/.local/share/nvim/site/pack/maml/start/vim-maml

# Vim
git clone https://github.com/maml-dev/vim-maml \
  ~/.vim/pack/maml/start/vim-maml

What is MAML?

MAML is a minimal, human-readable data format. Think JSON, but cleaner:

{
  project: "MAML"
  tags: [
    "minimal"
    "readable"
  ]

  # Comments are supported
  spec: {
    version: 1
    author: "Anton Medvedev"
  }

  notes: """
Raw multiline strings.
No escaping needed.
"""
}

Key differences from JSON:

  • # comments
  • Unquoted keys
  • Optional commas (newlines work as separators)
  • Raw multiline strings with """
  • No trailing comma errors

Learn more at maml.dev.

License

MIT

About

MAML for Vim and Neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors