Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
There's more than one way to do things
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Respected Monks,

While searching for a good Perl Syntax Checking Plugin, I came across "Syntastic".

It can be installed through github like so:

C:\Users\pmu\vim\vimfiles\bundle>git clone https://github.com/scrooloo +se/syntastic Cloning into 'syntastic'... remote: Counting objects: 8105, done. remote: Compressing objects: 100% (4107/4107), done. remote: Total 8105 (delta 3921), reused 7347 (delta 3214) Receiving objects: 100% (8105/8105), 2.03 MiB | 117.00 KiB/s, done. Resolving deltas: 100% (3921/3921), done.

Please change the path accordingly to ensure that you are inside the bundle folder while running the "git clone" command

Here's the settings that can be added in your _vimrc (or .vimrc if on Linux/Unix).
"Syntastic Settings set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_check_on_open=1 let g:syntastic_enable_balloons=1 let g:syntastic_always_populate_loc_list=1 let g:syntastic_echo_current_error=1 let g:syntastic_enable_highlighting=1 let g:syntastic_auto_jump=1 let g:syntastic_auto_loc_list=1 let g:syntastic_loc_list_height=5 let g:syntastic_perl_lib_path= 'C:\my32bitperl\perl\lib\' let g:syntastic_perl_checkers=['perl' , 'perlcritic'] let g:syntastic_id_checkers=1 "let g:syntastic_python_checkers=['python', 'pyflakes'] "Enable below in case you want the error line highlighted "highlight SyntasticErrorLine guibg=#6D6968 "highlight SyntasticWarningLine guibg=#6D6968 "Sytanstic Error Signs" "Replace the "→" below with the unicode right arrow (->) Symbol. "let g:syntastic_error_symbol="→→" "let g:syntastic_warning_symbol="→" "End of Syntastic Settings

Please check the path for "g:syntastic_perl_lib_path" variable. In my case its at "C:\my32bitperl\perl\lib\" because I am using Strawberry Perl Portable (5.16.3) which is extracted to the my32bitperl folder.

Hope this helps someone. In case you need my entire _vimrc, I will gladly put it up here.

Updated let g:syntastic_perl_lib_path= 'C:\my32bitperl\perl\lib\'. Replaced " with '.

|| Aeterna Est Perspectum Cognitio ||

In reply to Re: Recommended updates to gVim 7.4 on Win 7 for Perl Scripting. by pmu
in thread Recommended updates to gVim 7.4 on Win 7 for Perl Scripting. by pmu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (15)
    As of 2014-04-17 14:32 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      April first is:







      Results (449 votes), past polls