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

in #linux7 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.28
TRX 0.13
JST 0.033
BTC 62772.18
ETH 3032.07
USDT 1.00
SBD 3.67