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

in #linux8 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 0.15
TRX 0.26
JST 0.035
BTC 103407.68
ETH 2429.79
USDT 1.00
SBD 0.85