Show the full output of command :hi in a scratch buffer:
:Redir hi
Show the full output of command :!ls -al in a scratch buffer:
| #!/usr/bin/env bash | |
| for x | |
| do | |
| filename=$(echo $x|sed -e "s/\.wiki$/.md/") | |
| sed -f ex $x > $filename | |
| done |
| # Remove duplicated lines from a .vtt file generated by youtube-dl when | |
| # downloading auto-subs from a Youtube video using the --write-auto-sub option | |
| # This script only prints the lines so save the edited subs as: | |
| # | |
| # python this_script.py original_sub.vtt > new_sub.vtt | |
| import re | |
| import sys | |
| f = open(sys.argv[1]) |