nvim Markdown
Spell checking⌗
To enable spell checking in vim, use the command set spell
. This will highlight
misspelled words in your markdown files.
To enable spell checking:
:set spell
:set spelllang=en_us
Spelling suggestions can be accessed with z=
. This will open a window with
suggestions for the misspelled word.
If you want to add a word to your dictionary, use the command zg
.
Or to manually add a word to your dictionary:
:spellgood YOUR_WORD
Line wrapping⌗
Set your line width to 80 characters. This is a good width for readability and makes it easier to read your markdown files on different devices.
To set your line width to 80 characters:
:set textwidth=80
Use the command gq
to format a paragraph in markdown. This is useful for when
you are writing a paragraph and it is too long to fit on the screen.
To format your current line:
gq
To format a paragraph in normal mode:
gqap
Markdown preview⌗
I like the nvim plugin MeanderingProgrammer/markdown.nvim for markdown preview.
It will render your markdown file inline when in normal mode.