Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: .vimrc for perl programmers

by Codon (Friar)
on Mar 31, 2006 at 08:40 UTC ( #540411=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    function! Perl()
    " autoindent
    ...
    
    " Call Perl() when you open a Perl file
    autocmd FileType perl call Perl()
    
  2. or download this
    " restore defaults (incase I :e or :sp)
      set cinkeys&
    ...
    " I don't rememer these OTTOMH; :help cinoptions to learn more
      set cinoptions+=+2s,(1s,u0,m1
      set cindent
    
  3. or download this
    " SmartTab wrapper
    function! SmartTab()
    ...
    
    " turn on SmartTabs
    inoremap <tab> <c-r>=SmartTab()<cr>
    
  4. or download this
      set statusline=%f%{CurrSubName()}\ %m%h%r\ %=%25(%-17(%l\,%c%V%)\ %p
    +%%%)
      set laststatus=2
    ...
          return -1
        endif
      endfunction
    
  5. or download this
      map !! :!perl -c %<CR>
      map ## :s/^/#/<CR>
      map !# :s/^#//<CR>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://540411]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2015-07-29 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls