Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Sep 20 14:05
    carldelfin opened #417
  • Sep 11 11:00
    Konfekt closed #415
  • Sep 11 11:00
    Konfekt commented #415
  • Sep 07 19:24

    fmoralesc on master

    python/helpparser: fix version … (compare)

  • Sep 07 19:24
    fmoralesc closed #332
  • Sep 06 14:01
    Konfekt edited #415
  • Sep 06 13:40
    Konfekt opened #416
  • Sep 06 13:37
    Konfekt opened #415
  • Sep 06 13:23
    Konfekt commented #332
  • Sep 06 10:58
    user202729 commented #366
  • Sep 06 10:56
    user202729 commented #366
  • Sep 05 14:19
    lyndhurst commented #368
  • Sep 05 01:37
    user202729 opened #369
  • Sep 05 01:36
    user202729 commented #367
  • Sep 04 00:28
    user202729 commented #363
  • Sep 04 00:23
    user202729 commented #368
  • Sep 03 17:41
    elshize closed #347
  • Sep 03 17:41
    elshize commented #347
  • Sep 03 14:04
    fmoralesc commented #368
  • Sep 03 08:54
    lyndhurst opened #368
Felipe Morales
I'm trying out seeing what happens if I install it through vim-plug with :Plug alerque/vim-commonmark {'do': 'make'}
It works. But oh the colors~ :p
Caleb Maclennan
I imported your Python code too because I have an idea we might need to go down the Python road after all if we want this to support Vim8. I looked at the VIM8 Lua interface and it just doesn't have an API that works the same way.
It might still work, but it would require some rewiring. There is no vim.api, only a bunch of piecemeal hooks via vim.window, vim.buffer, etc.

It works. But oh the colors~ :p

Ay, it's ugly an dirt. I was mostly worried about checking what it was or wasn't matching, not in making it look good.

Felipe Morales
My python was constructed around neovim's remote plugin architecture, though, I don't know if vim8 offers something similar. One advantage it might have over the lua version is that it runs in a separate process.

It works. But oh the colors~ :p

Ay, it's ugly an dirt. I was mostly worried about checking what it was or wasn't matching, not in making it look good.

I understand. But it's in a public repo now, so maybe it's a good idea to provide some 'release' defaults ;)

Caleb Maclennan
Yup yup.
Caleb Maclennan
So @fmoralesc you are probably interested in this comment and this AUR package I just setup (precompiled package in my repo).
Some preliminary testing suggests commonmark-cli doing syntax coloring runs about 2× orders of magnitude slower than pulldown-cmark doing an HTML render. So that's not good. On the plus side it does cover all or most of the Pandoc flavor syntax! If we work out how to background the job of parsing and only block during updates to a limited portion of the buffer at a time we can probably make it work.
I figured out how to get Haskell→Lua bindings but not Lua→Haskell yet. We probably want to go down the RPC path for this.
I still want to finish off a working vim-commonmark using the Rust parser, but the lessons learned will be directly applicable to wiring in a different backend.
Felipe Morales
@alerque :+1: sounds good to me
Hello, i'm trying to setting up vim-pandoc around vimwiki and a zettelkasten system. I would like to have the autocompletion feature from vim-pandoc but i can't make it works. I'm on nvim
My settings are: " Pandoc
let g:vimwiki_filetypes = ['pandoc', 'markdown', 'textile']
let g:vimwiki_folding = 'custom'
let g:pandoc#folding#fdc = 0
let g:pandoc#folding#level = 999
let g:pandoc#folding#mode = 'stacked'
let g:pandoc#modules#enabled = ['folding', 'command']
let g:pandoc#biblio#sources = 'gy'
let g:pandoc#biblio#use_bibtool = 1
let g:pandoc#completion#bib#mode = 'citeproc'
let g:pandoc#biblio#bibs = ["Documents/biblio.bib"]
" Pandoc Autocomplete
augroup my_cm_setup
autocmd BufEnter * call ncm2#enable_for_buffer()
autocmd Filetype pandoc call ncm2#register_source({
\ 'name': 'pandoc',
\ 'priority': 8,
\ 'scope': ['pandoc'],
\ 'mark': 'md',
\ 'word_pattern': '\w+',
\ 'complete_pattern': ['@'],
\ 'on_complete': ['ncm2#on_complete#omni', 'pandoc#completion#Complete'],
\ })
augroup END
Domenico Ipri
please see issue #377
Thanks I'll check it
Hi, I'm wondering where the documentation for vim-pandoc is supposed to be. I've looked through the git repository and haven't found anything, and general web searches don't give me anything either.
Caleb Maclennan
@RhymeJob It's documented using VIM's internal help system. Use :help vim-pandoc to get there.
If you're poking around the git repo without the plugin installed the sources for it are in the docs directory.
I usually process my .md documents to pdf via groff ms (mainly because I don't have TeX installed on my laptops). So, for example, I would issue a command like: "pandoc -t ms -o test.pdf test.md". But when I try and issue a command like that via :Pandoc, it tries to process to pdf via html, and complains about missing utilities. Can I tell vim-pandoc to process to pdf via groff ms? And can I change the vim-pandoc compile to pdf command so that it always uses that route?
Caleb Maclennan
@tami5 Just pinging so you know about this channel we sometimes talk Vim/Pandoc dev stuff in.
Hey @alerque thanks for the invite. That would be really helpful, I was meaning to ask you if WithConcealin vim-pandoc-syntax, might be causing performance drawbacks. I'm copying the same pattern-ish right now
I also wonder why some calls has almost identical parameters getting called for the same group. like bellow the only difference is in the end
start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=\*\S\@=/ skip=/\(\*\*\|__\)/ 
start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=_\S\@=/ skip=/\(\*\*\|__\)/ 

call s:WithConceal('block', 'syn region mdEmphasis matchgroup=mdOperator start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=\*\S\@=/ skip=/\(\*\*\|__\)/ end=/\*\([[:punct:]]\|\s\|\_$\)\@=/ contains=@Spell,mdNoFormattedInEmphasis,mdLatexInlineMath,mdAmpersandEscape', 'concealends')
call s:WithConceal('block', 'syn region mdEmphasis matchgroup=mdOperator start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=_\S\@=/ skip=/\(\*\*\|__\)/ end=/\S\@1<=_\([[:punct:]]\|\s\|\_$\)\@=/ contains=@Spell,mdNoFormattedInEmphasis,mdLatexInlineMath,mdAmpersandEscape', 'concealends')

Greetings folks,
I do not manage to get any syntax highlighting for my markdown file:

The content is pretty plain: ('Test.md')



Test 2

Test 3

My vimrc looks as follows:

Maybe you can give me a hint? Syntax highlighting for everything else works fine, the .md file is recognised as markdown filetype


adding those two lines:
let g:pandoc#filetypes#handled = ["pandoc", "markdown"]
let g:pandoc#filetypes#pandoc_markdown = 0

gave me conceal results but I still have no highlighting when using filetype pandoc or markdown