Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/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
Vim-新代码段禁用缩进_Vim - Fatal编程技术网

Vim-新代码段禁用缩进

Vim-新代码段禁用缩进,vim,Vim,现在我有了这个新代码段,输出将第一行和最后一行之间的行缩进 snippet doc alias /.. /** * * @package ${1} * @author Author Name <authorname@gmail.com> * @license ${2:http://www.wtfpl.net/ Do What the Fuck You Want to Public License} * @v

现在我有了这个新代码段,输出将第一行和最后一行之间的行缩进

snippet doc
alias /..
    /**
     *
     * @package    ${1}
     * @author     Author Name <authorname@gmail.com>
     * @license    ${2:http://www.wtfpl.net/ Do What the Fuck You Want to Public License}
     * @version    Release: ${3:0.1.0}
     * @link       http://github.com/${4}
     * @since      Class available since Release ${5:0.1.0}
     */
${6:TARGET}
snippetdoc
别名/。。
/**
*
*@package${1}
*@作者姓名
*@license${2:http://www.wtfpl.net/ 做你他妈想公开许可的事}
*@version-Release:${3:0.1.0}
*@linkhttp://github.com/${4}
*@since类自发行版${5:0.1.0}起可用
*/
${6:TARGET}
输出片段的结尾如下所示

/**
    *
    * @package
    * @author     Author Name <authorname@gmail.com>
    * @license    http://www.wtfpl.net/ Do What the Fuck You Want to Public License
    * @version    Release: 0.1.0
    * @link       http://github.com/
    * @since      Class available since Release 0.1.0
 */
/**
*
*@package
*@作者姓名
*@许可证http://www.wtfpl.net/ 你他妈的想做什么就做什么
*@version发行版:0.1.0
*@linkhttp://github.com/
*@自类自0.1.0版起可用
*/

有没有办法禁用中间的缩进?谢谢

晚了,但其他人可能也在搜索(过去半个小时我也在搜索)。解决方案既简单又愚蠢:

在代码段的定义中使用制表符而不是空格。(“:设置列表”帮助)