Created
November 4, 2011 12:45
-
-
Save hayajo/1339242 to your computer and use it in GitHub Desktop.
use perltidy on vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"==================== | |
" 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
こんな感じ?