作者kornelius (c9s)
看板Editor
标题Re: [vim ] 自动连续注解怎麽开启?
时间Wed Jun 23 16:35:24 2010
跟 filetype 相关
要确定 filetype plugin on
测试:
:filetype detect
.vimrc 内加入:
:filetype on
:filetype plugin on
:filetype indent on
※ 引述《allstarschh (allstars)》之铭言:
: ※ 引述《yoco315 (眠月)》之铭言:
: : 奇怪,记得明明有这个功能,还是我记错了?
: : 平常输入注解的时候,
: : // first line <按下 enter>
: : // ← 应该是要自动会跳出这个注解符号
: : 但是不知道为什麽今天变成这样 ~_~
: : // first line <按下 enter>
: : _
: : 变成这样等待我输入,我是不小心设定到什麽了吗?
: : 印象中
: : /* <enter>
: : *
: : */ 应该是会变成这样才对
: : 但是今天不知道为什麽也没有 = =
: : 难道跟我刚刚安装的 neocomplcache 有关?
: : 还是说我记错了?其实本来就没有这种功能?
: 好像10.04的vim default是这样
: 目前要set formatoptions=r才可以有上面讲的功能
: 有没有人知道比较详细的background跟比较详细的解法吗??
--
qr{Cornelius|c9s};
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 116.118.139.8