5

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 have finished an entire paragraph. In Markdown, you can do that, but more often markdown source will be "hard wrapped"—in other words, while typing a paragraph ...


3

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. It will populate numbered lists automatically as 1) 2) 3) 4) 5) 6)


2

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 (.*). So you could take at least the function PandocSectionMovement and keybindings if you modify the first regex to ^\s*#.*\n Do be warned that this might ...


2

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] at the end of the line - it means the map is only available when in normal mode. This probably means the map action applies to the whole current line.


1

Just discovered the "bullets" plugin. Seems to do the job perfectly: https://github.com/dkarter/bullets.vim


1

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.


1

Another options is to add my langage with : :set spelllang=fr then add unrecognized words with zg


1

You can disable spell checking with: :set nospell


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