加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

如何在gvim中拼写检查?

发布时间:2020-12-15 16:19:18 所属栏目:安全 来源:网络整理
导读:在gvim中拼写检查的最好方法是什么?是否有附加组件或东西? 更新: 我想它也提供更正。 使用:set spell启用拼写检查。如果是源代码,gvim就足够聪明,只能拼写检查注释和字符串文字。 :help spell 会给你所有的细节。这里有一些片段: To search for the n
在gvim中拼写检查的最好方法是什么?是否有附加组件或东西?

更新:

我想它也提供更正。

使用:set spell启用拼写检查。如果是源代码,gvim就足够聪明,只能拼写检查注释和字符串文字。

:help spell会给你所有的细节。这里有一些片段:

To search for the next misspelled word:

]s           Move to next misspelled word after the cursor.
             A count before the command can be used to repeat.
             'wrapscan' applies.

[s           Like "]s" but search backwards,find the misspelled
             word before the cursor.  
Finding suggestions for bad words:

z=           For the word under/after the cursor,suggest correctly
             spelled words.
To add words to your own word list:

zg           Add word under the cursor as a good word

有关更改字典以包括其他区域,语言或单词集(例如,医学术语)的信息,请参阅:help set spelllang

gvim必须用|编译语法|。

我不把:set spell在我的.vimrc,因为当我编码在我的注释中有太多的变量名称被标记。如果有一个特定的文件类型,你想检查使用一个自动命令在.vimrc。或者只是在需要时手动打开它。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读