Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisbra/vim-xml-runtime
Vim filetype plugin for XML files
https://github.com/chrisbra/vim-xml-runtime
Last synced: 26 days ago
JSON representation
Vim filetype plugin for XML files
- Host: GitHub
- URL: https://github.com/chrisbra/vim-xml-runtime
- Owner: chrisbra
- Created: 2018-05-08T07:14:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-25T18:51:22.000Z (8 months ago)
- Last Synced: 2024-10-28T19:55:00.696Z (2 months ago)
- Language: Vim Script
- Size: 217 KB
- Stars: 11
- Watchers: 6
- Forks: 6
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-xml-ftplugin [![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/cb%40256bit.org)
Vim xml runtime filesThe official XML runtime files for Vim. They include:
* XML [filetype plugin][1]
* XML [indent script][2]
* XML [format script][3]
* XML [syntax script][4]Once in a while, a snapshot from here will be send to Bram for inclusion and distribution with [Vim][5]
This filetype plugin contains an xmlformatting plugin in the autoload directory:
### XMLFormat
> A Vim plugin to pretty print xmlThis plugin tries to format xml prettier. To use it, set the `formatexpr` option in Vim to `xmlformat#Format()` and reformat your document using `gq`
### Installation
Use the plugin manager of your choice.### Usage
In your XML document enter:
```
:set formatexpr=xmlformat#Format()
```
Then reformat using `gq`### License & Copyright
© 2018 by Christian Brabandt. The Vim license (see `:h license`) applies to the Vim plugin, the shell script is licensed under the BSD license.
__NO WARRANTY, EXPRESS OR IMPLIED. USE AT-YOUR-OWN-RISK__
[1]: https://github.com/chrisbra/vim-xml-ftplugin/blob/master/ftplugin/xml.vim
[2]: https://github.com/chrisbra/vim-xml-ftplugin/blob/master/indent/xml.vim
[3]: https://github.com/chrisbra/vim-xml-ftplugin/blob/master/autoload/xmlformat.vim
[4]: https://github.com/chrisbra/vim-xml-ftplugin/blob/master/syntax/xml.vim
[5]: https://www.github.com/vim/vim