Question:

I can't believe I am typing a question for a simple thing like this but here we are. I can't for the life of me figure out what the exact name for the settings file is for vim on Windows (.vimrc does not work on Windows). And if I have names
right (read the next para) then I don't know why it is not picking up the settings from it.

I tried creating _vimrc and _gvimrc in the root directory where I copied the file from the example settings file that came installed with vim. I set the following command on top of the example commands:

set nobackup
set nowritebackup
set guifont=Courier_New:h11:cANSI

It is not accepting this file (whether it is named _vimrc or
_gvimrc
, I tried both) as the settings file as the font has not changed on the next start-up and still writes backup files.

Answer:

my _vimrc/_gvimrc is stored at C:/Users/<ME>/_vimrc and is working fine.

It's generally a good idea to keep personal settings separate from installation files.

To get more information about the search paths for your configuration files, type
:he vimrc-intro.

And be careful: the docs say

For MS-DOS and MS-Windows you can use one of these:

$HOME/_vimrc

$VIM/_vimrc

While this is absolutely true, it could be a bit surprising that $VIM does not expand to e.g.
C:/Program Files/vim/<your_version> (this is what $VIMRUNTIME holds) but only to
C:/Program Files/vim/.

This said, C:/Program Files/vim/_vimrc should be read during startup.

最新文章

  1. Java MD5机密算法的使用
  2. 遭遇input与button按钮背景图失效不显示的解决办法
  3. lua c api
  4. Java面试(1)-- Java赋值表达式
  5. Jsoncpp Compiler、Programming
  6. 网上搜的一个shell中 中文设置的一个样例;
  7. SqlSever基础 dateadd month 增加五个月
  8. python 练习 16
  9. 转-TabHost组件(二)(实现底部菜单导航)
  10. EnterpriseArchitectect 软件的勾选的几个选项对应的中文意思
  11. Java web App 部署静态文件
  12. 让sublime支持gbk常用编码
  13. Error: 17053 LogWriter: Operating system error 21(The device is not ready.)
  14. c专家编程---优先级规则
  15. Linux 常 用 命 令
  16. Java经典编程题50道之一
  17. qingstor python-sdk 安装错误 src/MD2.c:31:20: fatal error: Python.h: No such file or directory
  18. RFC2616-HTTP1.1-Status Code(状态码规定部分—单词注释版)
  19. wordcloud词云
  20. python 日期操作【转】

热门文章

  1. (转)web前端知识精简
  2. 札记:翻译-使用Scene和Transition实现【场景切换】动画效果
  3. idea集成tomcat
  4. python 使用多线程进行并发编程/互斥锁的使用
  5. Elasticsearch 自定义多个分析器
  6. 使用NetTcpBinding,WCF服务未能被激活
  7. Angular使用总结 --- 通过指令动态添加组件
  8. vue.js多页面开发环境搭建
  9. 批量插入bulkcopy
  10. numpy中pad函数的常用方法