简体   繁体   English

查找VimR OSX的配置文件(vimrc?)

[英]Finding config file (vimrc?) for VimR OSX

For the VimR OSX app, I want to change the default vim settings (like default colorscheme, or always having :set number), and read online that there's a vimrc file that should be changed, but for some reason I just can't find it on my computer. 对于VimR OSX应用程序,我想更改默认的vim设置(如默认colorscheme,或者总是有:set number),并在线阅读有一个应该更改的vimrc文件,但由于某种原因我找不到它在我的电脑上。

Do you guys know where the vimrc (or whatever the vim config file is called) for VimR is? 你们知道VimR的vimrc(或vim配置文件的名称)在哪里吗?

Thanks! 谢谢!

VimR, (now?) tracking NeoVim, not Vim, isn't using ~/.vimrc by default any more : VimR,(现在?)跟踪NeoVim,而不是Vim, 默认情况下不再使用〜/ .vimrc

User: I reinstalled VimR recently, and settings from my .vimrc are no longer loaded. 用户:我最近重新安装了VimR,并且不再加载我的.vimrc设置。 Should I create some new dotfile and source .vimrc in it? 我应该在其中创建一些新的dotfile和源.vimrc吗?

Author: NeoVim changed that: https://neovim.io/doc/user/nvim.html#nvim-from-vim 作者:NeoVim改变了这一点: https ://neovim.io/doc/user/nvim.html#nvim-from-vim

and to quote from the linked NeoVim docs: 并引用链接的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. 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM