Git Product home page Git Product logo

vim-yaml's Introduction

Vim Yaml

Syntax file from http://www.vim.org/scripts/script.php?script_id=739

Yaml files in vim 7.4 are really slow, due to core yaml syntax. This syntax is simpler/faster.

g:yaml_limit_spell

Set to 1 to limit spell checking (if spelling is enabled) to Yaml comments and strings.

vim-yaml's People

Contributors

jakski avatar jennings avatar jwoos avatar marxarelli avatar nkakouros avatar ralish avatar stephpy avatar wreed4 avatar zackhsi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vim-yaml's Issues

Colon : character in strings break syntax highlighting

screen shot 2017-05-16 at 19 26 29

See above screenshot. Line 5 contains a string in double quotes. The string uses a : character.

Syntax highlighting is broken as you can see on lines 7 and 8, up until the next " character.

Replacing the double quotes in line 5 with single quotes has the same effect.

how to install yaml.vim

1:find the dir for 'after/syntax' by rpm command
exp. rpm -ql vim-filesystem-7.4.629-5.el6.x86_64 | grep 'after/syntax'
2:download the yaml.vim to the dir

How to use vim-yaml with vim 8.x native packages?

Hi & thanks for your plugin!

I'm no vim expert and want to use vim's native packages (instead of a proprietary package manager) on a Mac.

As far as I know, it should be sufficient to clone your directory to somewhere beneath ~/.vim/pack/:

git clone https://github.com/stephpy/vim-yaml.git… ~/.vim/pack/syntax/start/vim-yaml

But I don't see syntax highlighting when I open a .yml file.

The command :set runtimepath? shows:

  runtimepath=~/.vim,~/.vim/pack/syntax/start/vim-yaml,/usr/share/vim/vimfiles,/usr/share/vim/vim81,~/.vim/pack/syn
tax/start/vim-yaml/after,/usr/share/vim/vimfiles/after,~/.vim/after

Am I missing something?

If I know how it works I could contribute an install hint to your README.

Many thanks 🙇‍♂️

Comments inline with a yamlString region start break highlighting

Example:

list:
  - >- # comment
    text

text will not be highlighted as a string.

I tried modifying the start regex for the three yamlString regions to allow for inline comments like above. This fixes the highlighting of text but the inline comment is not highlighted as such; comment will get highlighted as the text` string.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.