VIM 注释掉 blade 个文件
VIM comment out on blade files
如何切换对 blade.php 扩展文件的评论。
Blade 是一个 Laravel 特定文件,它使用 {{-- --}} 注释掉。
我安装了 Nerdcommenter,但由于缺乏 Vim 知识
,不知道如何修改它以使用 blade 文件
现在,当我注释掉插件时使用
<!-- -->
有谁知道如何设置或推荐我其他插件吗?
书呆子评论者 already have the comment style you mention,但您需要使用文件类型 laravel
才能正常工作。
在再次使用 nerdcommenter 之前尝试发出 :set ft=laravel
。
要在您每次编辑 blade 文件时都进行这项工作,您可以在 vimrc
中包含以下行:
autocmd BufRead,BufNewFile *.blade.php set filetype=laravel
您可能还需要确保 filetype indent plugin on
在您的 vimrc
中。
如何切换对 blade.php 扩展文件的评论。
Blade 是一个 Laravel 特定文件,它使用 {{-- --}} 注释掉。
我安装了 Nerdcommenter,但由于缺乏 Vim 知识
,不知道如何修改它以使用 blade 文件现在,当我注释掉插件时使用
<!-- -->
有谁知道如何设置或推荐我其他插件吗?
书呆子评论者 already have the comment style you mention,但您需要使用文件类型 laravel
才能正常工作。
在再次使用 nerdcommenter 之前尝试发出 :set ft=laravel
。
要在您每次编辑 blade 文件时都进行这项工作,您可以在 vimrc
中包含以下行:
autocmd BufRead,BufNewFile *.blade.php set filetype=laravel
您可能还需要确保 filetype indent plugin on
在您的 vimrc
中。