sponsor Vim development Vim logo Vim Book Ad

vim-markdown-indent : Indents Markdown lists and enums and that's it

 script karma  Rating 4/1, Downloaded by 167  Comments, bugs, improvements  Vim wiki

created by
Sergei Mironov
 
script type
indent
 
description
The script indents Markdown lists and enumerations in the following way:

``` 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

```

For other options and the testing script, please check the Github repository:
https://github.com/sergei-mironov/vim-markdown-indent
 
install details
Copy the contents of the tarball into the ~/.vim tree.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-markdown-indent-1.2.0.tar.gz 1.2.0 2024-08-24 9.0 Sergei Mironov Move script to the proper location `./ftplugin` -> `./indent`
vim-markdown-indent-1.1.0.tar.gz 1.1.0 2024-08-03 9.0 Sergei Mironov Fixup release
vim-markdown-indent-1.0.0.tar.gz 1.0.0 2024-08-03 9.0 Sergei Mironov Initial upload
ip used for rating: 3.236.112.101

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github