Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 9. november 2026

Súbor: [Platon] / vimconfig / vim / ftplugin / perl.vim (stiahnutie)

Revízia 1.8, Sun Sep 18 11:04:57 2005 UTC (21 years, 1 month ago) by rajo


Zmeny od 1.7: +4 -4 [lines]

Ignore perltidy as equalprg

" Vim filetype plugin file
" Language:        Perl
" Maintainer:    Lubomir Host 'rajo' <rajo AT platon.sk>
" License:        GNU GPL
" Version:        $Platon: vimconfig/vim/ftplugin/perl.vim,v 1.7 2005/01/13 11:32:19 rajo Exp $


" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
  finish
endif
let b:did_ftplugin = 1

setlocal cindent
setlocal cinoptions=>4,e0,n0,f0,{0,}0,^0,:4,=4,p4,t4,c3,+4,(24,u4,)20,*30,g4,h4
setlocal cinkeys=0{,0},:,0#,!,o,O,e

" External program to format Perl code source.
"if executable("perltidy")
"    setlocal equalprg=perltidy\ -q\ -se\ -fnl
"endif


" Add mappings, unless the user didn't want this.
if !exists("no_plugin_maps") && !exists("no_perl_maps")
    " Ctrl-F reformat paragraph
    if !hasmapto('<Plug>PerlFormat')
        imap <buffer> <C-F> <Plug>PerlFormat
        map  <buffer> <C-F> <Plug>PerlFormat
    endif
    inoremap <buffer> <Plug>PerlFormat <Esc>mfggvG$='fi
    noremap  <buffer> <Plug>PerlFormat <Esc>mfggvG$='f
    vnoremap <buffer> <Plug>PerlFormat <Esc>mfggvG$='f
  
    if !hasmapto('<Plug>PerlCallProg')
        map  <buffer> <C-K> <Plug>PerlCallProg
    endif
    noremap  <buffer> <Plug>PerlCallProg :call CallProg()<CR>
endif


" Modeline {{{
" vim:set ts=4:
" vim600:fdm=marker fdl=0 fdc=3
" }}}

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok