generalised to any files
vic
visual select lines of python codes in markdown
code block:'<,'>!black -q -
to replace the visually
selected lines with the formatted standard output of the external
black
command (see :help filter
):'<,'>w !flake8 -
to use w
to echo
flake8’s output instead of replacing visually selected lines (see
:help :w_c
)Alternatively, I can open the output in a split
:'<,'>w !flake8 - > quickfix.vim
to pipe the
output into quickfix.vim
<leader>el