This is a small collection of scripts I've put together to ease the transition
from vim to plain vi. I doubt many people will find any utility in these
scripts, but at the very least, this repo will provide a central location for me
to grab this functionality when I configure a new box.
vifmt.sh: Run autoformatters on a filevireflow.sh: Reflow a paragraph of text according to the file extension, similar togqinvim.vispellcheck.sh: Denote possible misspellings in a paragraph of text. There is a lot thatvimincludes butvidoes not that makes this tricky, so unfortunately this does modify the text to add misspelling delimiters. Without syntax highlighting, this is the closest I could get to proper "integration" with the editor.
Obviously some of these could maybe be defined directly within your .exrc
mappings instead of wrapping in a shell script, but what I found was that
without autocmds to change behavior based on the buffer type, I needed some
level of indirection to change behaviors for different types of files.
- GNU
fmt(1) - GNU
sed(1) aspell(1)pandoc(1)
Optional:
go(1)goimports(1)rubocop(1)
Add this repository to $PATH, or for the more security conscious, reference
each script with an absolute path instead. Each script has an example of how to
map this script into your vi's init file.