[SP-pm] Esquema para o editor VIM

Luis Motta Campos luismottacampos at yahoo.co.uk
Sun Apr 4 09:19:44 PDT 2010


Ramon Vidal wrote:
> tem o perl-tidy
> 
> http://perltidy.sourceforge.net/
> 

No meu .vimrc, eu tenho isso:

" Runs perltidy, and goes back to current line before filtering.
function! Perltidy()
        let current_line = line('.')
        let perltidy     = 'perltidy'
        execute ":0,$!" . perltidy
        execute ":" . current_line
endfunction

map ,t :call Perltidy()<Cr>


Não é a melhor implementação do mundo, mas funciona para mim. ;)

Putamplexos!
-- 
Luis Motta Campos is a DBA,
Perl Programmer, foodie and photographer.


More information about the SaoPaulo-pm mailing list