Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/habamax/vim-rst
vim reStructuredText syntax and some more
https://github.com/habamax/vim-rst
markup restructuredtext syntax vim
Last synced: 3 months ago
JSON representation
vim reStructuredText syntax and some more
- Host: GitHub
- URL: https://github.com/habamax/vim-rst
- Owner: habamax
- Created: 2021-10-27T14:45:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-02T04:29:08.000Z (6 months ago)
- Last Synced: 2024-11-12T03:35:01.582Z (3 months ago)
- Topics: markup, restructuredtext, syntax, vim
- Language: Vim Script
- Homepage:
- Size: 53.7 KB
- Stars: 20
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
###############################################################################
vim-rst: reStructuredText for Vim
###############################################################################Installation
============Clone to the ``~/.vim/pack/plugins/start/vim-rst`` where ``plugins`` is an
arbitrary directory name inside ``/pack``::git clone https://github.com/habamax/vim-rst ~/.vim/pack/plugins/start/
Or use instructions of your plugin manager of choice.
Difference to bundled reStructuredText
======================================- ``formatlistpat`` is added (although it doesn't handle ``ii.`` or ``I.`` etc.).
- Arguably "sane" indentation.
- Handle nested directives.
- Inline markup highlighting takes care of a lot of edge cases and follows
`inline markup recognition rules`__.- Section highlighting doesn't clash with simple tables and has separate
section delimiter highlight.- Roles are highlighted such as ``:kbd:`Enter```.
- List items are highlighted.
- Simple table delimiters with empty rows are highlighted.
- Field lists and URLs are highlighted.
- and more...
__ https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules
Additional things you could try
===============================- `Fuzzy Table Of Contents`_ for Vim9
- `Auto adjust section delimiters`_
- `Generate PDF using Chrome web browser`_
- `Preview HTML version in web browser`_.. _Fuzzy Table Of Contents: https://github.com/habamax/vim-rst/wiki/Fuzzy-Table-Of-Contents
.. _Auto adjust section delimiters: https://github.com/habamax/vim-rst/wiki/Auto-adjust-section-delimiters
.. _Generate PDF using Chrome web browser: https://github.com/habamax/vim-rst/wiki/Generate-PDF-using-Chrome-web-browser
.. _Preview HTML version in web browser: https://github.com/habamax/vim-rst/wiki/Preview-HTML-version-in-web-browserScreens
=======.. image:: https://user-images.githubusercontent.com/234774/139922362-55787849-193b-475d-a91f-838ea29982cd.png
.. image:: https://user-images.githubusercontent.com/234774/140016933-3f0e5ebb-5220-4e29-945b-b10c1c334cf1.png
.. image:: https://user-images.githubusercontent.com/234774/139923458-864e0f7a-d07a-4970-b7ca-3567861768f8.png
.. image:: https://user-images.githubusercontent.com/234774/139924145-19517dfb-b93c-494f-8f86-85564cf19acf.png