{"repo":"sbdchd/neoformat","free":true,"listed":false,"github":"https://github.com/sbdchd/neoformat","clone":"git clone https://github.com/sbdchd/neoformat.git","description":":sparkles: A (Neo)vim plugin for formatting code.","language":"Vim Script","stars":2048,"topics":["vim","neovim","formatter","plugin"],"license":"BSD-2-Clause","category":"dev-tools","readme_excerpt":"Neoformat A (Neo)vim plugin for formatting code. Neoformat uses a variety of formatters for many filetypes. Currently, Neoformat will run a formatter using the current buffer data, and on success it will update the current buffer with the formatted text. On a formatter failure, Neoformat will try the next formatter defined for the filetype. By using getbufline() to read from the current buffer instead of file, Neoformat is able to format your buffer without you having to :w your file first. Also, by using setline() , marks, jumps, etc. are all maintained after formatting. Neoformat supports both sending buffer data to formatters via stdin, and also writing buffer data to /tmp/ for formatters to read that do not support input via stdin. Basic Usage Format the entire buffer, or visual selection of the buffer Or specify a certain formatter (must be defined for the current filetype) Or format a visual selection of code in a different filetype Note: you must use a ! and pass the filetype of the selection You can also pass a formatter to use Or perhaps run a formatter on save The undojoin command will put changes made by Neoformat into the same undo-block with the latest preceding change. See Managing Undo History. Install The best way to install Neoformat is with your favorite plugin manager for Vim, such as vim-plug: Current Limitation(s) If a formatter is either not configured to use stdin , or is not able to read from stdin , then buffer data will be written to a file in /tmp/n","default_branch":null,"files":null,"tree":[],"storefront":"/r/sbdchd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sbdchd/neoformat/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}