I have *very* little experience writing 'map' commands for my
.vimrc (Linux). For some years I've had the following two
commands for reformatting with the par utility.

" reformat paragraph with no arguments:
map ** {!}par^M}
"
" reformat paragraph with arguments:
map *^V  {!}par

 They both work well, but I frequently would like to run par
on a visual selection. I naively tried

vmap *^V  {!}par

 but this fails with the message (when I try "* 55" on a
selected area)

:'<,'>!}par 55
shell returned 127

 I would appreciate a suggestion here. Perhaps par is unable
to deal with a non-paragraph -- makes sense, I guess! I know I
can do at least simple reformatting by setting tw to the
desired value and using things like gqip etc. I just wondered
if there's a way to still use par.

 Thanks,
 John Cordes

Reply via email to