Skip to content

Instantly share code, notes, and snippets.

@hayajo
Created November 4, 2011 12:45
Show Gist options
  • Save hayajo/1339242 to your computer and use it in GitHub Desktop.
Save hayajo/1339242 to your computer and use it in GitHub Desktop.
use perltidy on vim
"====================
" perltidy
"====================
call system('which perltidy')
if ! v:shell_error
"autocmd FileType perl nmap <buffer> = :%!perltidy -q<CR>
"autocmd FileType perl vmap <buffer> = :!perltidy -q<CR>
autocmd FileType perl :set equalprg=perltidy\ -pbp
endif
@hayajo
Copy link
Author

hayajo commented Nov 4, 2011

こんな感じ?

@hayajo
Copy link
Author

hayajo commented Nov 6, 2011

Perl.Hacks.On.Vim Perlchinaを参考にして変更

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment