Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 days 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-23T12:20:04.000Z (3 months ago)
- Last Synced: 2024-08-23T13:43:12.088Z (3 months 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)