arnaud-lb / vim-php-namespace

PHP namespace support for VIM. Types "use" statements for you
256 stars 29 forks source link

vim fails to generate 'use statements' for namespaces #16

Open chan-grammer opened 9 years ago

chan-grammer commented 9 years ago

When the namespace declaration is written alongside the <?php tag, calling the plugin doesn't work at all.

For Example:

<?php namespace Foo\Demo; // This DOESN't work

BUT when i put the namespace declaration tlike this

<?php

namespace Foo\Demo;

It wored flawlessly though.

This plugin probably requires that the namespace declaration on a different line.