Questions tagged [filetype-markdown]

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

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
199 views

How to disable spell check inside code blocks in markdown?

Code blocks (fenced with ` or ```) are bound to have words not correctly spelled and spell check warnings often get in the way of syntax highlighting. I still want spell check enabled for the rest of ...
4 votes
0 answers
256 views

How to stop vim from reformatting lines inside a codeblock in a markdown file?

I keep the a formatoption in vim when I'm modifying markdown files, so my lines are automatically kept to textwidth characters long, with automatic reformatting when I modify text. How can I make ...
4 votes
0 answers
155 views

Prevent Vim from breaking up inline code blocks in (r)markdown

I edit R-markdown files a lot, and this entails writing inline code blocks, such as `r sum(mylongvectorname)` I usually have my text hard-wrapped at 80 chars, and this causes problems for the ...
  • 175
3 votes
0 answers
193 views

How to preview Markdown in a Vim buffer?

I'm aware of some of the Markdown plugins for Vim, but I want the functionality VS Code and Atom provide, namely being able to split the editor screen and render a live Markdown preview in an adjacent ...
  • 185
3 votes
0 answers
346 views

README.md (markdown) - jump to infile link

While reading a markdown file, specifically using GitHub markdown, vim interprets hyperlinks correctly. It seems like it would be able to jump to the corresponding section in the file. Is there a key ...
  • 163
2 votes
1 answer
832 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 ...
2 votes
0 answers
65 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><...
  • 66
1 vote
0 answers
25 views

vim-fugitive support for diff --color-words

I use vim and git primarily for editing prose documents in LaTeX or Markdown, not for coding. For this reason, my go-to git diff command is git wdiff, where the relevant part of .gitconfig reads ...
1 vote
1 answer
206 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 ...
  • 11
1 vote
0 answers
20 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 ...
  • 121
1 vote
0 answers
83 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
0 answers
688 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 ...
  • 825
0 votes
0 answers
94 views

Formatting markdown text: Respect code blocks and tables

I set setlocal formatoptions+=tl textwidth=80 setlocal formatoptions-=c formatoptions-=r formatoptions-=o formatoptions-=q formatoptions+=n setlocal formatlistpat+=\\\|^\\s*[-*+]\\s\\+ in my ftplugin/...
  • 169
0 votes
0 answers
138 views

Auto-update Markdown Outline

For Markdown I use the https://github.com/plasticboy/vim-markdown plugin. This Plugin defines a command :Toc which opens a new window a propagates a clickable buffer out of the Headlines. Very helpful ...
  • 353
0 votes
0 answers
708 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
0 answers
341 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 ...
  • 1
0 votes
0 answers
102 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 ...
  • 2,091
0 votes
0 answers
35 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
0 answers
29 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 ...
  • 861