vim-php-namespace:为您键入“ use”语句

时间:2021-02-02 01:11:05
【文件属性】:
文件名称:vim-php-namespace:为您键入“ use”语句
文件大小:45KB
文件格式:ZIP
更新时间:2021-02-02 01:11:05
vim php namespace vim-php VimVimscript 目标 vim-php-namespace是一个vim插件,用于自动插入“ use”语句。 产品特点 导入类或函数(添加使用语句) 自动为光标下方的名称添加相应的use语句。 要使用此功能,请在~/.vimrc添加以下映射: function! IPhpInsertUse() call PhpInsertUse() call feedkeys('a', 'n') endfunction autocmd FileType php inoremap u :call IPhpInsertUse() autocmd FileType php noremap u :call PhpInsertUse() 然后,在正常或插入模式下单击\u将在光标下导入类或函数。 <?php new Response <-- cursor here or on the name; hit \u now to insert the use statement 使类或函数名称完全合格 将光标下的名称扩展为其完全限定的名称。 要使用此功能

网友评论