Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Recommended updates to gVim 7.4 on Win 7 for Perl Scripting.

by pmu (Beadle)
on Nov 09, 2013 at 03:47 UTC ( #1061794=note: print w/replies, xml ) Need Help??

in reply to Recommended updates to gVim 7.4 on Win 7 for Perl Scripting.

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 +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 ||

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061794]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-09-20 08:12 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (234 votes). Check out past polls.