Questions tagged [filetype-markdown]

For questions about configuring and using Vi/Vim to edit markdown files.

Filter by
Sorted by
Tagged with
2
votes
0answers
51 views

How to disown a process opened by plugin? (vim-rmarkdown)

as I said in the title I'm talking about vim-rmarkdown, I have this in my init.vim (I'm using neovim) to compile the .rmd file to a pdf. autocmd Filetype rmd nnoremap <F5> :w<Space><...
1
vote
1answer
414 views

How to use code highlighting and checking in markdown?

In writing markdown files, I may use code blocks with ``` and `. Is there a way I can use code highlighting and checking on just the code blocks inside markdown files?
1
vote
2answers
216 views

Automatically add '>' at beginning of line following one starting with '>' when writing Markdown

When writing block quotes Markdown, I want to make vim act the same way it does with comment leaders and automatically start new lines with the '>'. I also want to be able to format text this way with ...
1
vote
1answer
102 views

Vim syntax group not stopping

I recently upgraded to vim 8.2.0100 on Mac, and the markdown highlighting appears to have changed to be buggy. Here is an example: Normal syntax *Highlighting has started* Highlight continues ...
1
vote
2answers
868 views

How to make vim to automatically break lines in markdown files?

I'm using vim and markdown for note taking. Sometimes I find some useful information online, so I'll copy and paste into vim like below: useful information line1 useful information line2 useful ...
1
vote
1answer
25 views

How to replace [ with ( in vim

I have this markdown line, ![Home][screenshots/home.png] I want to replace it with, ![Home](screenshots/home.png) So, I tried this, :%s/[s/(s/g Vim(version 81) says pattern not found.
1
vote
2answers
154 views

How to prevent markdown folding of # comments in fenced code?

I have python examples in a markdown file in a code fence (e.g. when I convert a jupyter notebook into a markdown document). These snippets sometimes have code comments in them starting with #. The ...
1
vote
2answers
69 views

How to copy all non-alphanumeric characters at the begining of the line to the next line?

I want to implement something similar to Org mode M-RET into neovim. In Org mode it creates new list item or heading depending on what line the point is on. I'm thinking of a mapping in neovim that ...
1
vote
2answers
599 views

How can I turn off syntax highlighting for one specific element?

I'm editing pandoc markdown text with inline math. Since that uses underscores, vim will helpfully highlight everything after the first underscore, but there will be no matching one. How can I turn ...
1
vote
1answer
191 views

markdown spell checking with triple nested bullet point

I am confused about what is going on in this example and why spell checking is not working any help is appreciated. While editing a markdown file with spell checking enabled the following happens: * ...
1
vote
1answer
74 views

Can I restrict :s to a particular substring of a line?

I ran into this doing a quick conversion of markdown into JIRA markdown. - A standard markdown list - hierarchical - easy to read - tidy - A JIRA markdown list -- Hierarchical -- Somewhat ...
1
vote
1answer
170 views

UltiSnips regex macthing

I want the possibility of transforming an inline equation in latex to a display equation. So I want $something$ to become $$ something $$ My attempt was this: snippet "$(.+)$" "...
1
vote
1answer
139 views

Comments for github flavored markdown with vim-commentary

vim-commentary is a great plugin for commenting and uncommenting lines. However if some filetype isn't supported, as per documentation, one can do the following: (see FAQ) autocmd FileType apache ...
1
vote
1answer
288 views

How to use vim-markdown :Toc: for documents with extension other than .md

When editing long markdown documents it is really good to be able to navigate in them with the :Toc option from vim-markdown. I also edit long .Rmd documents from vim (when the content is more about ...
1
vote
1answer
318 views

How to use TexMathZones in Markdown Syntax, for Snippets?

I am a recent and very happy Vim User. I write Mathematics and Computer Science Lecture Notes in Markdown Files, organized in a Vimwiki. I use the UltiSnips Snippet Plugin. This plugin provides me ...
1
vote
1answer
393 views

Disable trailing whitespace lint warnings for Markdown file

I use vim 8 and ALE plugin. On a markdown page, I see the following from ALEInfo Current Filetype: markdown Available Linters: ['alex', 'languagetool', 'markdownlint', 'mdl', 'proselint', 'redpen', '...
1
vote
1answer
279 views

Enable Expr Folding in Markdown

I want to fold in markdown using the built in markdown plugin that I believe should come with the version of vim I have (Vi IMproved 8.1 (2018 May 18, compiled Apr 23 2019 20:02:08)). I am struggling ...
1
vote
1answer
43 views

Is it possible to put “|” character in a vimwiki table cell?

vimwiki tables are auto-formattable. This is very convenient but I'm in trouble when I'm trying to make this kind of table. | | Composites | | `xy` | `x` followed by `y` | | `x|...
1
vote
0answers
61 views

How do you highlight text surrounded by double equals

I'm using vimwiki plugin with markdown. I'd like to highlight text using double equals, which isn't standard, but is quite useful. Ideally, this should replace background (for instance, yellow) and ...
1
vote
0answers
313 views

Vimwiki/Markdown blockquote syntax highlight

AFAIK vimwiki's markdown syntax doesn't emphasize in any way blockquotes. I mean: > This is a quote is presented instead as simple text. For reading notes it can be confusing. So, how do you ...
1
vote
0answers
15 views

Doxygen LaTeX syntax

I am using doxygen to document my code and I like to have additional markdown files which include formulas by using \f$ Formula \f$. I know markdown syntax provided by the vim-markdown plugin supports ...
1
vote
0answers
31 views

My C like Comments include markdown, can I have vim highlight those in my JavaScript (Node.js) code? [duplicate]

I write a lot of C/C++ and get highlighting for my Doxygen docs in my comments. It's not perfect, but it sure helps avoiding many very simple mistakes on the spot. To handle that, I simply have the ...
1
vote
0answers
67 views

Why are my bulleted lines automatically joining?

I use the a formatoption to make my text hard wrap, and the n formatoption to recognize numbered lists. The help says that the n option should use the formatlistpat regex to determine which lines not ...
1
vote
0answers
567 views

Viewer for Markdown/MathJax rich text editing in vim/neovim?

Problem Statement Currently I use VIM in a terminal to write code. All my notes are on Microsoft Word 365, which I have been using for a long while. I tried using markdown recently, used VIM to ...
0
votes
1answer
269 views

How to set a command as a file type specific autocommand

I would like the :Toc command to call :Voom in R markdown files and :VimtexTocOpen in latex files. First try: au BufRead,BufNewFile *.Rmd command! Toc Voom au BufRead,BufNewFile *.tex command! Toc ...
0
votes
2answers
1k views

No folding of markdown files

Running neovim 0.1.7. When I open a markdown file, it does not fold - even when I try zM zR zc, etc. :set tells me ft=markdown and foldmethod=syntax How do I get the folding?
0
votes
1answer
18 views

markdown html-element syntax highlighting fails when line has leading spaces

For some reason, my html elements stop being highlighted when they are preceded by 4 or more spaces. I use spaces to do indentation for nested elements, so this is quite unfortunate. This only ...
0
votes
1answer
32 views

Syntax highlighting for uppercase headings using === or — syntax

In Vim, without using any markdown plugin, headings like # Uppercase heading # lowercase heading lowercase heading ================= lowercase heading ----------------- get highlighted, while ...
0
votes
1answer
45 views

Why my markdown syntax is not working?

I'd like to edit text with markdown syntax. Searching for ways of using mixed syntax in the same file I've discovered this question with an answer saying that if I add the line let g:...
0
votes
2answers
30 views

Markdown is not highlighted

I am unable to turn on syntax highlighting for Markdown. How do I do it? Here's my version information: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 15 2020 15:48:23) Included patches: 1-758 Here'...
0
votes
3answers
80 views

Table of content for R markdown files

My workflow is to perform data analysis in R markdown files. They are a mix of text and code chunks, pretty much like jupyter notebooks for python. These files can get long with time and I like to ...
0
votes
2answers
157 views

Finding Markdown image tags with regular expressions (E486)

I have a document that contains lines like ![My title](/path/to/image.jpg) This is the format for images in Markdown. I have constructed a regular expression which I believe should be able to find ...
0
votes
0answers
128 views

Markdown syntax color theme

I am giving advice to different research groups at our university. Open Research is promoted highly and many groups use R for statistical analysis. Many are also interested in using Markdown, Pandoc ...
0
votes
0answers
54 views

Vim-Pandoc Overrides my Markdown Plugins

I've been trying to get the vim-pandoc plugin to play nice with markdown nvim, and have not been successful in finding help so far. The trouble seems to be that vim-pandoc sets markdown files to be ...
0
votes
0answers
101 views

Vim spellcheck does not highlight/select misspelt text which is emphasized or strongly emphasized in Markdown

I have noticed that vim spellcheck does not highlight/select text which is emphasized (i.e., italicized) or strongly emphasized (i.e., bold) in markdown. For example, The wuick brown fox jumps over ...
0
votes
0answers
22 views

How to configure formatoptions for markdown?

I really like how vim paragraph auto format works for markdown. The one place where it falls flat on its face is when editing/formatting code and log output that I want to put into the markdown (maybe ...
0
votes
0answers
32 views

after compilation in Vim : cursor in gg

I'm french... sorry for my english I try to compile files (.tex, .md ... using vim). I open terminal and make the compilation ; just before the compilation i save the file and put a marker in the ...
0
votes
0answers
27 views

How can I display text differently from how it is actually stored?

I am making a custom syntax partially based on Markdown. I want to display links differently from how they are stored in the file. For example, [About me](about.md) in the file should be displayed as ...
-1
votes
0answers
24 views

Please help debug syntax

I want to add syntax and highlighting to markdown filetypes. I have plugin 'vim-markdown-master'. I read that if I want to add syntax and highlighting to syntax files I need to put it in after/syntax/...
-1
votes
1answer
329 views

Markdown folding in vim 8.2

I'm using vim 8.2 on Win 10. I want to enable markdown folding with the built-in markdown.vim. But it will not work. I have tried solutions from other questions (e.g., Enable Expr Folding in Markdown ...

1
2