Vim keyword completion for ctags with backslashes?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using ctags for keyword completion on a PHP project in vim. Since ctags doesn't handle PHP namespaces out of the box, I've added a regex option to my ctags command: ctags (...) --regex-PHP='^namespace\s+([^;]*)/\1/c/' (...) This works fairly well: if I type Foo<Ctrl+N> I get suggestions for Foo , Foo\Bar , Foo\Bar\Baz and so on. However, the backslash seems to count as a word separator when vim determines the keyword to look up in the tags file. In other words, typing Foo\Ba<Ctrl+N> does not give me suggestions for Foo\Bar\Baz etc, which