Skip to content

Commit

Permalink
Merge pull request #1 from ornicar/master
Browse files Browse the repository at this point in the history
Compatibility with tpope/vim-pathogen
  • Loading branch information
arnaud-lb committed Jun 7, 2011
2 parents de8010a + bcd7778 commit 24bd122
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ vim-php-namespace is a helper script for inserting "use" statements automaticall

## Installation:

* Copy `runtime/plugin/phpns.vim` to `~/.vim/plugin/`
* Add this in `~/.vim/ftplugin/php.vim`:
### If you don't use tpope/pathogen:

imap <buffer> <F5> <C-O>:call PhpInsertUse()<CR>
map <buffer> <F5> :call PhpInsertUse()<CR>
Copy `plugin/phpns.vim` to `~/.vim/plugin/`

### Add your custom mapping:

Add this in `~/.vim/ftplugin/php.vim`:

imap <buffer> <F5> <C-O>:call PhpInsertUse()<CR>
map <buffer> <F5> :call PhpInsertUse()<CR>

The script makes use of tag files. If you don't already use a tag file you may create one with the following command; after having installed ctags-exuberant:

Expand Down
File renamed without changes.

0 comments on commit 24bd122

Please sign in to comment.