1 "define :Tidy command to run perltidy on visual selection || entire buffer"
2 command! -range=% -nargs=* Tidy <line1>,<line2>!perltidy
4 "run :Tidy on entire buffer and return cursor to (approximate) original position"
12 "shortcut for normal mode to run on entire buffer then return to current line"
13 noremap <F2> :call DoTidy()<CR>
15 "shortcut for visual mode to run on the the current visual selection"
16 vnoremap <F2> :Tidy<CR>