For Bash IDE:
1. Download bash-support.zip file from this site : http://www.vim.org/scripts/script.php?script_id=365
2. Unzip bash-support.zip file in /etc/vim directory also either copy the bash-support from /etc/vim to the user’s home directory [ cd /home/user, mkdir .vim, cp -r /etc/vim/bash-support /home/user/.vim] Or unzip bash-support.zip in user’s home directory [ /home/user/.vim]
3. Open your script in gvim mood. [ gvim script.sh]
Read More :
http://www.vim.org/scripts/script.php?script_id=365
For Perl :
1.Download the zip file from here : http://www.vim.org/scripts/script.php?script_id=556
Then follow the same way for bash.