llvm/mlir/utils/vim
Sergei Grechanik b08ede4374 [MLIR] Fix MLIR vim syntax file
This commit fixes several things in the MLIR vim syntax file:
- Spell checking is now on by default only in comments.
- '#' now starts an identifier instead of starting an outline attribute
  declaration, which fixes coloring the rest of the line as a
  preprocessor directive when there is a '#' in the middle.
- '!' and '^' -prefixed identifiers are now colored as types
  and labels.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D122626
2022-04-04 09:02:32 -07:00
..
ftdetect
ftplugin
indent
syntax [MLIR] Fix MLIR vim syntax file 2022-04-04 09:02:32 -07:00
README

-*- mlir/utils/vim/README -*-

This directory contains settings for the vim editor to work on MLIR *.mlir 
files.  It comes with filetype detection rules in the (ftdetect),
syntax highlighting (syntax), some minimal sensible default settings (ftplugin)
and indentation plugins (indent).

To install, copy all subdirectories to your $HOME/.vim/, or if you
prefer, create symlinks to the files here.

To enable highlighting inside the Markdown docs, one can add

```
let g:markdown_fenced_languages = ['mlir']
```

to `.vimrc`.