【问题标题】:How to get Vim to use a local spell-file in the current directory?如何让 Vim 使用当前目录中的本地拼写文件?
【发布时间】:2015-03-14 11:36:41
【问题描述】:

我不明白 Vim 可以进行拼写检查,它可以修改 ~/.vim 中的拼写文件以保持单词被标记为良好。

我想将“本地”拼写文件保存在与我正在编辑的文件相同的目录中,这样如果我在不同的目录中编辑不同的文件,就会使用不同的拼写文件。

我将如何设置 Vim 来执行此操作?

【问题讨论】:

    标签: vim spell-checking spelling


    【解决方案1】:

    Vim 自己的帮助在这里很有用:

    :help spellfile
    
        Name of the word list file where words are added for the 
        zg and zw commands.  It must end in ".{encoding}.add". 
        You need to include the path, otherwise the file is placed
        in the current directory. 
    

    更多详细信息: http://thejakeharding.com/tutorial/2012/06/13/using-spell-check-in-vim.html Separate Vim spellfile for custom words

    所以:

    :set spellfile=./en.utf-8.add
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多