我的 ubuntu 上有 vim 和 gvim。
我知道vim配置文件~/.vimrc和gvim配置文件~/.gvimrc。
有时我写入这些文件以更改 vim/gvim 的配置。
但是,
1. 这两个文件是如何工作的?
2. 为什么当我修改文件~/.vimrc 但它也适用于gvim?那么有两个配置文件有什么意义呢?只需一个文件 --> ~/.vimrc 就可以完成这项工作,不是吗?
最佳答案
参见 :help gvimrc
:
The
gvimrc
file is where GUI-specific startup commands should be placed. It is always sourced after thevimrc
file.You can use the gvimrc files to set up your own customized menus (see
:menu
) and initialize other things that you may want to set up differently from the terminal version.
关于linux - .vimrc 和 .gvimrc 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38353060/