Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes

Pandoc and formatting

Markdown has a concept of a "paragraph" different from that of MS Word. In MS Word, all text wrapping is "soft wrapped"—that is, you keep typing text without pressing "Enter" (or "Return") until you ...
Wildcard's user avatar
  • 4,429
4 votes

Generating automated bullets and numbered lists with markdown

Just discovered the "bullets" plugin. Seems to do the job perfectly: https://github.com/dkarter/bullets.vim
StevieD's user avatar
  • 1,492
3 votes
Accepted

Generating automated bullets and numbered lists with markdown

There is an inbuilt feature in vim, write this 1) use yy5p to paste 5 (or use any number) lines of number 1) 1) 1) 1) 1) 1) 1) Now select from the second to the last line and press g then Ctrl+A. ...
Galilean's user avatar
  • 293
2 votes
Accepted

How to move to Markdown ATX-style headers?

The linked plugin gives the following regexs (modified to only include #-relevant parts): ^\s*#\a.*\n ^\s*#\{2,6}.*\n The first requires an alphabetic character (/\a) after the #; the second does not ...
D. Ben Knoble's user avatar
  • 26.4k
2 votes
Accepted

Vim Pandoc & Headers

If you read vim-pandoc's help (:h pandoc.txt) you will see, in the section called *vim-pandoc-keyboard-module*, this line: <localleader>#* apply header (accepts a count) [n] Notice the [n] ...
VanLaser's user avatar
  • 9,760
1 vote
Accepted

execute 'Goyo' on loading pandoc document

Thanks to D. Ben Knoble above. Moving the file from ~/.config/nvim/ftplugins/pandoc.vim to ~/.config/nvim/after/ftplugins/pandoc.vim made it work. Not that it explains why it didn't work before.
vorpal's user avatar
  • 111
1 vote

Vim pandoc red background

Another options is to add my langage with : :set spelllang=fr then add unrecognized words with zg
sylvain's user avatar
  • 145
1 vote
Accepted

Vim pandoc red background

You can disable spell checking with: :set nospell
Martin Tournoij's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible