Friday, April 1, 2011

Re: Perl indent in vim 7.3

On Fri, Mar 18, 2011 at 09:24:09PM -0400, Matt Martini wrote:
>I find that perltidy (http://perltidy.sourceforge.net/) is a great help in formatting perl code.
>
>With this map:
>
> map <leader>p mz:%!perltidy -q<CR>'z

'setlocal equalprg=perltidy' in ftplugin/perl.vim and you can use perltidy automatically with the = command.

--

.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment