http://www.perlmonks.org?node_id=1061794


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