求助vim大神,一个细节的东西,找不到怎么设置

jackerloong 2014-10-26 08:59:56
就是编写C/C++程序时,输入注释

然后回车,就会自动对齐加 * ,效果如下:


我的系统当前是 Ubuntukylin 14.04LTS 32位,求助,不胜感激
...全文
158 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Cody2k3 2014-10-27
  • 打赏
  • 举报
回复
这个没有遇到过,估计楼主指的是linux的desktop下切换? 我只用putty登录linux,所以在windows下貌似没有这个问题
jackerloong 2014-10-26
  • 打赏
  • 举报
回复
引用 1 楼 Cody2k3 的回复:
:set fo=r 详情见 http://vimdoc.sourceforge.net/htmldoc/change.html#fo-table You can use the 'formatoptions' option to influence how Vim formats text. 'formatoptions' is a string that can contain any of the letters below. The default setting is "tcq". You can separate the option letters with commas for readability. letter meaning when present in 'formatoptions' ... r Automatically insert the current comment leader after hitting <Enter> in Insert mode.
设置 set fo=r 后,Ctrl+空格 不能切换输入法了,快捷键功能被vim霸占了,怎么破??
jackerloong 2014-10-26
  • 打赏
  • 举报
回复
设置 set fo=r 后,Ctrl+空格 不能切换输入法了,快捷键功能被vim霸占了,怎么破??
Cody2k3 2014-10-26
  • 打赏
  • 举报
回复
:set fo=r 详情见 http://vimdoc.sourceforge.net/htmldoc/change.html#fo-table You can use the 'formatoptions' option to influence how Vim formats text. 'formatoptions' is a string that can contain any of the letters below. The default setting is "tcq". You can separate the option letters with commas for readability. letter meaning when present in 'formatoptions' ... r Automatically insert the current comment leader after hitting <Enter> in Insert mode.

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧