note
cees
<p>I can't live without perltidy:</p>
<code>
" Tidy selected lines (or entire file) with _t:
nnoremap <silent> _t :%!perltidy -q<Enter>
vnoremap <silent> _t :!perltidy -q<Enter>
</code>
<p>That lets you highlight some text and hit _t to run it through perltidy and pretty up your code. I often use it in conbination with some of the highlight commands:</p>
<ul>
<li>tidy current block: shift-V%_t </li>
<li>tidy next 10 lines: shift-V10j_t </li>
<li>whole file: _t</li>
</ul>
540167
540167