正在查找 VimR OSX 的配置文件 (vimrc?)
Finding config file (vimrc?) for VimR OSX
对于 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.
对于 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.