Vim settings file on Windows
来源:互联网 发布:开淘宝店什么利润高 编辑:程序博客网 时间:2024/05/26 09:56
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 nobackupset nowritebackupset 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 toC:/Program Files/vim/
.
This said, C:/Program Files/vim/_vimrc
should be read during startup.
- Vim settings file on Windows
- windows vim settings
- Improving Putty settings on Windows
- open file on vim tab
- Vim – Open file in existing window new tab on Windows
- VIM on Windows 之 vimalways
- Vim as Python IDE on windows
- Vim as Python IDE on windows
- Build VIM&GVIM Executables on Windows
- Flash Trust File on Windows 7
- my vim settings
- Vim settings(.vimrc or _vimrc)
- VIM marksbrowser 與 showmarks 衝突 修改 (on windows)
- config vim + clang complete with libclang on windows/linux
- Vim as Python IDE on windows(转)
- Quartus II Settings File (.qsf)
- Cannot load settings from file
- Manually and automatically mount windows file system on Linux
- ******************** 三目运算符 ********************
- java 多线程学习笔记之 线程同步
- Tag,让男人“欲罢不能”的十大诱人女星
- Hadoop集群错误
- 黑马程序员——Java基础->面向对象(上)
- Vim settings file on Windows
- 黑马程序员——Java基础->单例设计模式
- 黑马程序员——Java基础->面向对象(下)
- 黑马程序员——Java基础->异常
- 81. Search in Rotated Sorted Array II Leetcode Python
- Longest Valid Parentheses
- POJ 1363 解题报告
- 黑马程序员——Java基础->多线程
- Java-类初始化顺序-1