Tim Chase wrote:

 Thanks for the response. I usually would be using Shift-V to
select the lines for formatting; I take it vis.vim wouldn't
work in that case?


Heh, Dr. Chip answered the other half of my response. :)

Normal ranges operate linewise. Dr. Chip's vis.vim plugin overcomes this limitation, and allows ranges to be treated block-wise and character-wise. So if you only need linewise, vim already does it. If you need to overcome that limitation, use vis.vim.


:)

Yep, vim already supports linewise, but I figured I'd include it in vis.vim for completeness (and for those whose fingers get into a pattern!). It only cost two extra lines of script (one to test if its 'V' mode, the other to pass it along to vim: '<,'> [command] ).

Chip Campbell



Reply via email to