Show full output of command :hi
in scratch window:
:Redir hi
Show full output of command :!ls -al
in scratch window:
# 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]) |
#!/usr/bin/env bash | |
for x | |
do | |
filename=$(echo $x|sed -e "s/\.wiki$/.md/") | |
sed -f ex $x > $filename | |
done |