#Linux Two useful Vim related functions to put in the bash_aliases file.
(Edited)
Create an html duplicate of a text file. Usage: $ vimhtml file.txt
. You will obtain something like file.txt.html
vimhtml() {
[[ -f "$1" ]] || return 1; vim +'syn on | run! syntax/2html.vim | wq | q' "$1" > /dev/null 2>&1;
}
Create a pre-formated with the sha-bang line and the execute flag file ready to be edited as bash script. Usage $ vix myscript.sh
vix() {
[ -e "$1" ] || echo -e '#!/bin/bash\n\n' > "$1";
chmod +x "$1";
vi "+normal G" +startinsert "$1"
}
WE ARE ON A BLOCKCHAIN SO... [disclaimer]
This is a new re-edited post on an old deleted one (so saved to the same blockchain cell/link) and this is why you may notice discrepancies in such things as the first hastag, title/hardlink to the blockchain, date of the post, topic/date of the comments, reported likes and their date and so on.
0
0
0.000
Nice one, Tag boombox on and future music you post! #upvoted