对于 VimR OSX 应用程序,我想更改默认的 vim 设置(比如默认的配色方案,或者总是有 :set number),并在线阅读了一个应该更改的 vimrc 文件,但出于某种原因我只能在我的电脑上找到它。
你们知道 VimR 的 vimrc(或任何 vim 配置文件的名称)在哪里吗?
谢谢!
最佳答案
VimR,(现在?)跟踪 NeoVim,而不是 Vim,isn't using ~/.vimrc by default any more :
User: I reinstalled VimR recently, and settings from my .vimrc are no longer loaded. Should I create some new dotfile and source .vimrc in it?
Author: NeoVim changed that: https://neovim.io/doc/user/nvim.html#nvim-from-vim
并引用链接的 NeoVim 文档:
Transitioning from Vim *nvim-from-vim* To start the transition, create ~/.config/nvim/init.vim with these contents: set runtimepath^=~/.vim runtimepath+=~/.vim/after let &packpath = &runtimepath source ~/.vimrc Note: If your system sets `$XDG_CONFIG_HOME`, use that instead of `~/.config` in the code above. Nvim follows the XDG |base-directories| convention.
关于macos - 查找 VimR OSX 的配置文件(vimrc?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37803754/