How do I replace a line (or range) with the output of a shell command in Vim?
:.!{cmd}
:.
42 results for "block insert I"
:.!{cmd}
:.
set statusline=%{MyCustomFunc()}
How it works Vim's statusline supports the %{expr} syntax which evaluates a Vimscript expression and displays the result.