Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Plugins 将PHP documenter脚本绑定到<;C-P>;精神抖擞_Plugins_Vim_Phpdoc - Fatal编程技术网

Plugins 将PHP documenter脚本绑定到<;C-P>;精神抖擞

Plugins 将PHP documenter脚本绑定到<;C-P>;精神抖擞,plugins,vim,phpdoc,Plugins,Vim,Phpdoc,正如在这里的回答中所建议的那样: 我试图将Ctlp绑定到PHP documenter脚本以生成注释 我在.vimrc文件末尾使用了以下几行: " PHP documenter script bound to Control-P autocmd FileType php inoremap <C-P> <ESC>:call PhpDocSingle()<CR>i autocmd FileType php nnoremap <C-P> :call Ph

正如在这里的回答中所建议的那样:

我试图将Ctlp绑定到PHP documenter脚本以生成注释

我在.vimrc文件末尾使用了以下几行:

" PHP documenter script bound to Control-P
autocmd FileType php inoremap <C-P> <ESC>:call PhpDocSingle()<CR>i
autocmd FileType php nnoremap <C-P> :call PhpDocSingle()<CR>
autocmd FileType php vnoremap <C-P> :call PhpDocRange()<CR> 
它工作正常,所以我知道php-doc.vim插件安装正确,问题在于键盘快捷键

我在我的.vimrc文件中搜索了是否有任何其他绑定到Ctlp,但没有找到

有什么建议吗?

是不同的:您正在将某些内容映射到Ctrl+Shift+p,但正在按Ctrl+p

按Ctrl+Shift+p时会发生什么情况?

是不同的:您正在将某些内容映射到Ctrl+Shift+p,但您正在按Ctrl+p


当你点击Ctrl+Shift+p时会发生什么?

你是对的,我误解了另一篇文章中的答案,似乎“kbd”标签表明显示的“p”是小写的,而它应该是大写的。好的,我刚刚修正了另一个答案。我已将映射从
更改为
。我想你也应该这样做,因为
稍微方便一点(手指伸得更少)。你是对的,我误解了另一篇文章中的答案,似乎“kbd”标签表明显示的“p”是小写的,而它应该是大写的。好的,我刚刚修正了另一个答案。我已将映射从
更改为
。我认为你也应该这样做,因为
稍微方便一点(手指伸展更少)。
:call PhpDocSingle()