http://en.wikipedia.org/wiki/Iftop if available on your distro can be very handy for this too
Handy, but these two are not synonymous. For instance InsertLeave
event doesn't fire while using Ctrl + c.
http://rsontech.net/2012/05/13/ctrl-c-is-not-escape.html has some details on the differences
@jaredonline Yeah, the two sometimes trips people. :help s_flags
has all info about flags that can be used with substitute command
Your regex can atmost match once in a line (because of $
), so g
doesn't do anything. Although the flag's name is global, it actually means global in a given line and not doc (I'd guess because of evolution from ed
commands).
If your compiler supports C++11, you can use std::array[1] which is a lightweight (and safe) wrapper around C style arrays.
Brilliant!