diff --git a/Examples.md b/Examples.md index 37a49a8..8a67e2c 100644 --- a/Examples.md +++ b/Examples.md @@ -197,6 +197,20 @@ ftpane () { } ``` +### v +Inspired by [v](https://github.com/rupa/v). Opens files in ~/.viminfo + +```sh +# Openings files in ~/.viminfo +v() { + local files + files=$(while read line; do + [ -f "${line/\~/$HOME}" ] && echo $line + done < <(grep '^>' ~/.viminfo | cut -c3-) | fzf-tmux -d -m) && + vim ${files//\~/$HOME} +} +``` + ### z Integration with [z](https://github.com/rupa/z), like normal z when used with