" 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
I suspect you want something like
vnoremap *^V :!par
I'll throw in the obligatory caution that the "*" is an actual
Vim command (and thus useful...I employ it nearly daily). You
might want use "<leader>" to map it to something like
vnoremap <leader>= :!par<cr>
vnoremap <leader>g= :!par<space>
which is designed more for a purpose like this.
The second one should, after you highlight some lines, leave you
on a line that reads something like
:'<,'>!par_
(where "_" is a space) where you can enter additional parameters
for par.
This operates on line-wise selections...for blockwise or
characterwise selections, you may have to bung with Dr. Chip's
VisVim plugin which should accept the same sort of format as the
above command(s).
HTH,
-tim