dahu / vim-asciidoc

Enhanced editing support for Asciidoc files in Vim
42 stars 11 forks source link

When I open an asciidoc-file I get lots of errors #14

Closed nielsk closed 8 years ago

nielsk commented 8 years ago

I installed vim-asciidoc via NeoBundle and when I open now a file everything I need seems to work but when opening a file a lot of errors are printed out:

Error detected while processing /home/user/dotfiles/vim/.vim/bundle/vim-asciidoc/ftplugin/asciidoc.vim:
line   96:
E121: Undefined variable: ERex
E15: Invalid expression: ERex.parse(' \%(\_^\|\n\)       # explicitly_numbered   \s*   \d\+   \.   \s\+ \| \%(\_^\|\n\)       # explicitly_alpha   \s*   [a-zA-Z]   \.   \s\
+ \| \%(\_^\|\n\)       # explicitly_roman   \s*   [ivxIVX]\+       # (must_end_in_")"   )   \s\+ \| \%(\_^\|\n\)       # definition_list   \%(\_^\|\n\)   \%(\S\+\s\+\)\+  
 ::\+   \s\+   \%(\S\+\)\@= \| \%(\_^\|\n\)       # implicit   \s*   [-*+.]\+   \s\+   \%(\S\+\)\@=')
line  102:
E716: Key not present in Dictionary: list_pattern . '/'
E15: Invalid expression: 'syn match asciidocListBullet /' . s:asciidoc.list_pattern . '/'
line  103:
E716: Key not present in Dictionary: list_pattern
E15: Invalid expression: s:asciidoc.list_pattern
line   96:
E121: Undefined variable: ERex
E15: Invalid expression: ERex.parse(' \%(\_^\|\n\)       # explicitly_numbered   \s*   \d\+   \.   \s\+ \| \%(\_^\|\n\)       # explicitly_alpha   \s*   [a-zA-Z]   \.   \s\
+ \| \%(\_^\|\n\)       # explicitly_roman   \s*   [ivxIVX]\+       # (must_end_in_")"   )   \s\+ \| \%(\_^\|\n\)       # definition_list   \%(\_^\|\n\)   \%(\S\+\s\+\)\+  
 ::\+   \s\+   \%(\S\+\)\@= \| \%(\_^\|\n\)       # implicit   \s*   [-*+.]\+   \s\+   \%(\S\+\)\@=')
line  102:
E716: Key not present in Dictionary: list_pattern . '/'
E15: Invalid expression: 'syn match asciidocListBullet /' . s:asciidoc.list_pattern . '/'
line  103:
E716: Key not present in Dictionary: list_pattern
E15: Invalid expression: s:asciidoc.list_pattern

I am using vim 8.0.3 on Ubuntu 16.04..1

dahu commented 8 years ago

It looks like you are missing https://github.com/Raimondi/VimRegStyle The full dependencies for vim-asciidoc are listed on the project page: https://github.com/dahu/vim-asciidoc

nielsk commented 8 years ago

That's it. Case closed. I am sorry that I have bothered you with this :( Thanks a lot.

dahu commented 8 years ago

I'm glad it was an easy fix. :-)