Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1103685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:22:33+00:00 2026-05-17T01:22:33+00:00

Lately I’ve been making a couple of mistakes when refactoring in Vim, the result

  • 0

Lately I’ve been making a couple of mistakes when refactoring in Vim, the result was undefined and unused variables. Any decent IDE (like NetBeans) would mark them as such, but I’ve yet to come across a Vim plugin that does the same.

Can anyone help me out? I’m mainly programming in PHP.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:22:34+00:00Added an answer on May 17, 2026 at 1:22 am

    You can run Zend’s PHP code analyzer from within VIM. I currently do this. The catch is that Zend Code Analyzer is no longer packaged as a separate binary when installing Zend Studio. I’m not sure which OS you are running. I’m running on OS X. If you don’t already have the binary, use steps 1 & 2 on this site to get it – http://michalf.me/blog:zend-code-analyzer-in-textmate. You may have to adjust for your OS.

    After getting the binary add the following to your .vimrc and replace the /usr/local/… with the path to your ZendCodeAnalyzer.

    if !exists("autocommands_loaded")
    
      let autocommands_loaded = 1
      "PHP Make 
      autocmd BufRead *.inc,*.php set makeprg=/usr/local/bin/ZendCodeAnalyzer\ %
      autocmd BufRead *.inc,*.php set errorformat=%f(line\ %l):\ %m
    
    endif
    
    map <F7> :silent lmake<cr>:lwindow <cr>:redraw!<cr>
    

    Now when you enter F7 it will run make which is set to run the ZendCodeAnalyzer. It will put the results into a location list – :help location. You can scroll through the location list and hit enter on a line and it will take you to that line in your file. If it doesn’t find anything, then it won’t open anything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lately I've been in the habit of assigning integer values to constants and simply
Lately I've been using XPathDocument and XNavigator to parse an XML file for a
Lately I've been taking a look at Haxe , to build an application to
Lately, I've been going through a pretty weird phase. I feel the need to
Lately I have been thinking about investing in a worthy USB pen drive (something
Lately I had to change some code on older systems where not all of
Lately I've be moving source files around in our source tree. For example placing
Lately I have seen a lot of blog posts concerning how to build loosely
Lately all modern programming languages have a definitive web site to support, distribute, learn
Lately I've found myself constantly running ILDASM to study the MSIL output of my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.