https://github.com/sergei-mironov/vim-markdown-indent
Vim markdown indentation plugin
https://github.com/sergei-mironov/vim-markdown-indent
indentation markdown vim vim-plugin
Last synced: about 1 month ago
JSON representation
Vim markdown indentation plugin
- Host: GitHub
- URL: https://github.com/sergei-mironov/vim-markdown-indent
- Owner: sergei-mironov
- License: mit
- Created: 2023-05-06T10:38:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T12:20:04.000Z (almost 2 years ago)
- Last Synced: 2025-01-02T20:31:09.995Z (over 1 year ago)
- Topics: indentation, markdown, vim, vim-plugin
- Language: Vim Script
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Vim-markdown-indent
===================
[[Vim script page](https://www.vim.org/scripts/script.php?script_id=6116)]
A vim plugin to setup the indent expression for the Markdown files in Vim, and
that is it.
``` markdown
1. Numbered list, press enter ...
. `<--` cursor goes here.
2. Press enter and then continue the list by typing `3. ` ...
3. The plugin adjusts the indentation by shifting the line to the left.
1. But if we type `1.` the plugin would treat it as a nested list.
2. So we can continue.
* The same works for itemized lists. Typing `*` in the next line instructs
plugin to shift the line to the left.
* But typing the list bullet other than the current one, say `-`, ...
- makes a nested list start.
- All the above works for
multi
line
- list items
```
More details on formatting can be seen in the [test script](./test.sh).
References
----------
* [vim-kramdown-tab](https://github.com/mzlogin/vim-kramdown-tab)