vim-pandoc icon indicating copy to clipboard operation
vim-pandoc copied to clipboard

Trying to Solve Incompatibility Issue with Vim-Markdown - Help?

Open TheCedarPrince opened this issue 5 years ago • 1 comments

Introduction

Hi all,

Wonderful plugin for Vim! I have been very much enjoying it. :smile:

Problem Overview

However, I seem to be running into some sort of issue with my markdown files being consistently recognized by Vim as pandoc filetypes. I looked at issue #70 and it seems very similar to what I am experiencing.

I tried the solution of using let g:pandoc#filetypes#pandoc_markdown = 0 but it did not fix the filetype issue. My Vim still shows the file as being of type pandoc.

My ultimate goal is to remove vim-pandoc-syntax from my Vim setup and instead use vim-markdown and tabular in place of it. As it stands, vim-pandoc-syntax and vim-pandoc are interfering with these other plugins. For example, I cannot use the folding settings from vim-markdown although I would very much like to use that keymap as well as some other relevant features.

Conclusion

Any help would be much appreciated! Thanks!

Minimal .vimrc


""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
                                  " VIM SETTINGS
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" TURNS LINE NUMBERING ON
set nu

" ENABLES A SYSTEM-WIDE VIMRC
set nocompatible 

" ENSURES DEFVAULT VIM SYNTAX HIGHLIGHTING
syntax on

set encoding=utf-8

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
                                    " PLUGINS
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" ENABLES PLUGINS TO WORK
filetype plugin on

" LOCATION OF WHERE PLUGINS ARE INSTALLED
call plug#begin('~/.vim/addons')

" BibTeX Handling
Plug 'vim-pandoc/vim-pandoc'
Plug 'vim-pandoc/vim-pandoc-syntax' "Also used for Markdown formatting

" Vim Markdown mode
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'

" Deoplete Completion framework
if has('nvim')
  Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
  Plug 'Shougo/deoplete.nvim'
  Plug 'roxma/nvim-yarp'
  Plug 'roxma/vim-hug-neovim-rpc'
endif

call plug#end()

""""""""""""""""""""""""""""""
" TABULAR & VIM-MARKDOWN
""""""""""""""""""""""""""""""

let g:vim_markdown_folding_level = 1

""""""""""""""""""""""""""""""
" VIM-PANDOC
""""""""""""""""""""""""""""""
let g:pandoc#filetypes#handled = ['pandoc', 'markdown']
let g:pandoc#modules#disabled = ['folding', 'spell']
let g:pandoc#biblio#bibs = ['/home/src/Offline/Zettelkasten/zettel.bib']

""""""""""""""""""""""""""""""
" VIM-PANDOC-SYNTAX
""""""""""""""""""""""""""""""
let g:pandoc#syntax#conceal#blacklist = ['strikeout', 'list', 'quotes']


Vim Version Info

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 17 2020 05:10:37)
Included patches: 1-587
Modified by <[email protected]>
Compiled by <[email protected]>
Huge version without GUI.

OS Info

          /:-------------:\          cedarprince@obsidian 
       :-------------------::        -------------------- 
     :-----------/shhOHbmp---:\      OS: Fedora x86_64 
   /-----------omMMMNNNMMD  ---:     Host: XPS 15 7590 
  :-----------sMMMMNMNMP.    ---:    Kernel: 5.6.13-100.fc30.x86_64 
 :-----------:MMMdP-------    ---\   Uptime: 1 day, 17 hours, 11 mins 
,------------:MMMd--------    ---:   Shell: zsh 
:------------:MMMd-------    .---:   Resolution: 1920x1080 
:----    oNMMMMMMMMMNho     .----:   DE: Plasma 
:--     .+shhhMMMmhhy++   .------/   WM Theme: Sweet-Dark-transparent 
:-    -------:MMMd--------------:    CPU: Intel i7-9750H (12) @ 4.500GHz 
:-   --------/MMMd-------------;     Memory: 3897MiB / 15639MiB 
:-    ------/hMMMy------------:
:-- :dMNdhhdNMMNo------------;
:---:sdNMMMMNds:------------:
:------:://:-------------::
:---------------------://

TheCedarPrince avatar Jul 05 '20 20:07 TheCedarPrince

I've got the very same problem. I'm trying to use vim-pandoc, but avoid using vim-pandoc-syntax, letting my markdown plugins handle syntax highlighting for me. Any help would be much appreciated!

benbrastmckie avatar Feb 01 '21 20:02 benbrastmckie