#Linux Alias-function to transform a plain text file into a full formatted html one with Vim.

in #linux4 years ago

The usage is $ vimhtml text.txt to obtain text.txt.html.

vimhtml() {
    [[ -f "$1" ]] || return 1; vim +'syn on | run! syntax/2html.vim | wq | q' "$1" > /dev/null 2>&1;
    }

Coin Marketplace

STEEM 1.18
TRX 0.15
JST 0.138
BTC 58776.22
ETH 3936.97
BNB 680.39
SBD 7.28