添加'*'文档在新行上的字符


Vim add '*' character for docs on new line

我甚至不知道如何在谷歌上搜索这个,我尝试了这个问题的标题,但找不到任何有用的。

在Vim上使用PHP,如果我有这样的东西:

/**
 * <cursor>
 */

如果我按回车键,我将得到:

/**
 * 
 <cursor>
 */

我想要的是这个:

/**
 * 
 * <cursor>
 */

是的,它只是一个字符,但它有点困扰我。实现这一目标最简单的方法是什么?

编辑:

我的.vimrc文件有这些命令(和其他):

" Enable syntax highlight
syntax on
" Syntax in a plugin-based way
filetype on
" Indentation in a plugin-based way
filetype indent plugin on
set fo+=or

我猜,你需要在vimrc下面的行:

filetype on
filetype indent plugin on  

我正在使用spf13-vim的配置,它适用于我。我认为插件PHP集成环境的Vim - PIV的技巧,因为有一个特性的文档

我很抱歉。我发现了问题:

autocmd FileType php,phtml :set ft=php.html

我使用这一行加载HTML片段的PHP文件与snipMate.vim插件。事实证明,如果我删除这一行,行为将是我所期望的。

谢谢大家。