#!/bin/sh # Use vim to cat a file. # Useful if file is vim-encrypted (password silently expected). trap "stty '$(stty -g)'" EXIT stty -echo vim -es '+%p' '+:q!' "$1"