Skip to content

dltmtt/zv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

zv – z for vim

zv is like z, but for vim (or any other command). It allows you to quickly open a file as long as it's been opened before with vim1 (since it's based on the viminfo file).

This has been inspired by rupa/v, whose development seems to have stalled. Differences can be found in the What's changed? section.

What's changed?

  • zv is POSIX compliant and conformant to the Utility Syntax Guidelines, which means that it can be used without additional software in POSIX systems that don't have bash as their default shell, such as FreeBSD;
  • zv can open files with any command, not just vim — the command can be specified with the -c option or the ZV_CMD environment variable;2
  • the default command is read from the EDITOR environment variable and can be overridden with the ZV_CMD environment variable;
  • ZV_VIMINFO can be used to customize the path to the viminfo file.
  • options are different, see the manual page for details.

Installation

Put zv somewhere in your PATH (e.g. /usr/local/bin/).

For the manual page, put zv.1 somewhere in your MANPATH (e.g., /usr/local/man/man1/).

Footnotes

  1. Or any other command, see What's changed?.

  2. Additional arguments may be specified here, e.g., ZV_CMD='bat --style=full'.

About

z for vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published