Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( [id://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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found