Help for this page

Select Code to Download


  1. or download this
    /usr/local/share/vim/vim60/syntax/perl.vim
    
  2. or download this
    let b:current_syntax = "perl"
    
  3. or download this
    syn include @Sql <sfile>:p:h/sql.vim
    syn region perlSQL start="qq{" end="}" contains=@Sql keepend
    syn region perlSQL start="qq\[" end="\]" contains=@Sql keepend
    syn region perlSQL start="<<SQL" end="^SQL" contains=@Sql keepend
    
  4. or download this
    my $sql1 = qq{ SELECT fieldname 
        FROM $tab_array[0]
    ...
        FROM $tab_hash{$current}
        WHERE otherfield = ( ? )
    ];
    
  5. or download this
    my $sign = qq {DO NOT SELECT FROM MY TABLE !}
    
  6. or download this
    :runtime! syntax/2html.vim
    
  7. or download this
    # ./configure --enable-perlinterp 
    # make
    # make install
    
  8. or download this
    :perl $count = 0
    :perldo $count += split /[;_<> ]/, $_ 
    :perl VIM::Msg($count)
    
  9. or download this
    :perl @lines = sort {$a <=> $b} $curbuf->Get(1 .. 15)
    :perl $curbuf->Set(1, @lines)
    
  10. or download this
    :perl $curbuf->Set(1, sort {$a <=> $b} $curbuf->Get(1 .. 15))
    
  11. or download this
    :10,30perldo s/\b(:?Monks|advocates)\b/PerlMonks/
    :40,45perldo tr/A-F0-9//cd