Skip to content

16Bitt/viutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

viutils

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 file
  • vireflow.sh: Reflow a paragraph of text according to the file extension, similar to gq in vim.
  • vispellcheck.sh: Denote possible misspellings in a paragraph of text. There is a lot that vim includes but vi does 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.

Prerequisites

  • GNU fmt(1)
  • GNU sed(1)
  • aspell(1)
  • pandoc(1)

Optional:

  • go(1)
  • goimports(1)
  • rubocop(1)

Usage

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.

About

Scripts to fill in the gaps in plain vi(1) after over a decade of vim

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages