GitHub logo L04DB4L4NC3R / top.vim

A simple vim plugin to convert the output of the top command into a markdown report format

top.vim

A simple vim plugin to convert the output of the top command into a markdown report format


Keybindings

Mode Mapping Action
Normal tpmd Convert to markdown
Normal [num]tpmt Print top 'num' lines (>= 8)

Demo

Before:

top - 00:25:34 up 15:32,  1 user,  load average: 0.62, 0.82, 0.89
Tasks: 368 total,   1 running, 276 sleeping,   0 stopped,   0 zombie
%Cpu(s):  5.2 us,  1.5 sy,  0.1 ni, 92.3 id,  0.8 wa,  0.0 hi,  0.1 si,  0.0 st
KiB Mem : 16262016 total,  9164476 free,  1610276 used,  5487264 buff/cache
KiB Swap:        0 total,        0 free,        0 used. 14080740 avail Mem
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
15158 angad     20   0   57824   4188   3428 R  12.5  0.0   0:00.02 top
 2795 angad     20   0  662896  61704  33972 S   6.2  0.4   0:39.40 x-terminal-emul
    1 root      20   0  225944   9512   6544 S   0.0  0.1   0:42.48 systemd
    2 root

View on GitHub