Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I've been using Eclipse to work on my PHP projects for a while now, but have recently moved back to vim to save on system resources. I have vim setup and working exactly how I like it (with indentation, syntax highlighting, setting up tags, working with tabs etc.) except for one issue - auto (or omni) completion. I use ctags to build a tags file for the project I'm working on (I don't have access to the machine where the script is sitting at the moment - but it basically ignores everything but .php files, and does a recursive search under the folder I pass it).
I then set the tags file in vim and go to work - C-X, C-o works but it does not give me a context sensitive list of options. For example, if I have a Class called PersonBase which has a static method called retrieveByPK, typing in PersonBase::re (C-X,C-o) gives me a list of more than just the two static methods contained in the PersonBase class (this list includes some methods from the PHP library itself). It gets even worse when using omni-completion with Objects returned from a function. I get a list of all available functions which I have to browse through to get to the one I need.
I was wondering if anybody can help me out with this problem - it's not a show stopper for me, 'cause Vim brings a lot more to the table, but I would really like auto-completion to be working so that I can start being a tad more productive.
" Assuming Vim 7 (full version) is installed,
" adding the following to your ~/.vimrc should work.
filetype plugin on
au FileType php set omnifunc=phpcomplete#CompletePHP
" You might also find this useful
" PHP Generated Code Highlights (HTML & SQL)
" Hope this helps!