summaryrefslogtreecommitdiff
path: root/bin/vcat
blob: 7c162d4b34f392e653ca2ba7155943273a8dcea3 (plain)
1
2
3
4
5
6
7
8
#!/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"