Skip to main content
Share Your Experience: Take the 2024 Developer Survey
21 votes
Accepted

Where do I put my "vimrc" file for Neovim on Windows?

Neovim looks for ~\AppData\Local\nvim\init.vim to run at startup. If you want to create the suggested init.vim from :help nvim-from-vim, save the following instead: set runtimepath+=~/vimfiles,~/...
Michael Kropat's user avatar
20 votes
Accepted

How to adjust gVim to my HiDPI display scaling on Windows 10?

I'm on Windows 10, update 1909, and I've resolved this by overriding high DPI settings for gVim to System(Enhanced). Setting GUI font size did not help. Right click on gVim icon -> Properties -> ...
wl2776's user avatar
  • 360
14 votes
Accepted

How can I get gVim on Windows to behave as on Linux?

When I have to work on Windows (which is more often than I would like), I use Cygwin to get a terminal a little less crappy than the original Windows command line. Cygwin provides an environment which ...
statox's user avatar
  • 50k
13 votes

Vim on WSL: synchronize system clipboard? (set clipboard^=unnamed)?

I'm aware this is a very old question but I recently found a good solution. After much frustration, I came across these ways to access the windows system clipboard by copying and pasting. By copying, ...
questionmark's user avatar
12 votes

How can I get gVim on Windows to behave as on Linux?

As of Windows 10 Anniversary Update, you can use the Bash on Ubuntu terminal to run a Linux subsystem where you can apt install anything you're used to inside Ubuntu. Your Windows file system is ...
Chad Gilbert's user avatar
11 votes
Accepted

Neovim setup on MS Windows

The user's runtime directory is $XDG_CONFIG_HOME/nvim. When $XDG_CONFIG_HOME isn't set (which is the typical case), then the default directory is ~/AppData/Local on Windows and ~/.config elsewhere. ...
jamessan's user avatar
  • 11.1k
11 votes
Accepted

Copying From Vim to Ubuntu Bash on Windows

Thank you to @Christian Brabandt for linking this in the comments: https://www.reddit.com/r/vim/comments/7pmv3d/workflows_that_work/dskyram/ Works great. Just put the following in your vimrc and make ...
J-Win's user avatar
  • 369
11 votes

How to adjust gVim to my HiDPI display scaling on Windows 10?

On Windows, the configuration file of gVim is named: _vimrc It is placed in the installation directory, the default being: C:\Program Files (x86)\Vim To edit the file you first need to launch some ...
Vlastimil Burián's user avatar
10 votes

How to get Python support on MS Windows?

You need to install Python yourself on Windows. If you type :version, you should see +python/dyn and +python3/dyn. On Windows, this means that Vim is compiled to dynamically load the Python DLL. You ...
Tommy A's user avatar
  • 6,780
10 votes
Accepted

24-bit / 256 colorscheme in Windows console

tl;dr: My path was using the an old Vim version, with v8.1.428 we have full 24-bit glorious colours in Vim in the Windows Console! See below for screenshots. Err, so there was a basic mistake on my ...
icc97's user avatar
  • 583
9 votes

How to use WSL's bash shell as default terminal of gvim/windows 10?

GVim is a 32-bit application and WSL must run on 64 bit. On Windows 10 you can use GVim with WSL if you add the following to your vimrc file: if has("win32") set shell=C:\Windows\Sysnative\wsl....
jtourlamain's user avatar
9 votes
Accepted

Why can't I paste commands into vi?

set mouse= is the fix for the problem, with set t_BE= substituted in an xterm environment. The 'bug' these fixes solve was actually intended as a 'feature': creating an obstacle to pasting vi ...
user19858's user avatar
  • 171
9 votes
Accepted

Why does setting runtimepath do nothing?

In this case the double quote " starts a comment. After removing the comment you have: set rtp+= While double (or single) quotes are normally used to enclose strings, the syntax for setting options ...
Ralf's user avatar
  • 9,247
9 votes
Accepted

Getting Python support for gVim 8.1 (Windows 10)

With dynamic python, the name of the python DLL (or shared object on Unix) is defined at compile time. In your case it is python36.dll. As you now want to use a different python version, this name ...
Ralf's user avatar
  • 9,247
8 votes

How can I install 64-bit Vim on Windows?

I was just looking this information up and I only found one x64 version not mentioned by Christian. Here's a summary of the interfaces each version supports today to give you an idea of how well they ...
idbrii's user avatar
  • 661
8 votes

Change $HOME before it gets accessed

After you answered the question yourself, the focus shifted. It seems the Question is now "How can I prevent Vim from checking for $HOME/_vimrc?". Try the following: Create the file $USERPROFILE/...
Ralf's user avatar
  • 9,247
8 votes

Where is "~/.config/nvim/init.vim" on Windows?

It is likely that you are reading the wrong tutorial since you are using Windows, but your tutorial are apparently meant for Linux/macOS users. The definitive answer: the neovim config is named init....
jdhao's user avatar
  • 1,143
7 votes

Where is xxd in Windows gvim?

It is distributed with Vim (as xxd.exe), along with diff.exe. So it exists and should work on Windows. You don't need to install anything separately, as it is already bundled with Vim (at least in ...
mMontu's user avatar
  • 6,640
7 votes

How do I make "Edit with Vim" open Vim instead of gVim on windows?

I did this by changing the registry key in [HKEY_LOCAL_MACHINE\SOFTWARE\Vim\Gvim] "Edit with Vim" opens gVim: path=C:\Program Files\Vim\vim74\gvim.exe "Edit with Vim" opens Vim: path=C:\Program ...
Sphen's user avatar
  • 71
7 votes

UTF-8 not working on VIM

GENERAL SETTINGS Vim internal use of encoding (this settings is must if you like to use utf-8 or you would like to convert encoding from one to another). I strongly recommend to set this setting in ...
folow's user avatar
  • 241
6 votes

Vim on WSL: synchronize system clipboard? (set clipboard^=unnamed)?

What about this? if system('uname -r') =~ "Microsoft" augroup Yank autocmd! autocmd TextYankPost * :call system('clip.exe ',@") augroup END endif uname is a Linux terminal command which ...
aohmusi's user avatar
  • 59
6 votes
Accepted

What is the correct way to escape UNC paths?

The problem you are encountering is, that the commandline subsystem on Windows does not support UNC paths. (Try running cmd.com and then cd \\server\path\to\dir and notice the error message CMD does ...
Christian Brabandt's user avatar
6 votes
Accepted

Why cannot I make Vim (not gVim) fullscreen?

I believe that it's not Vim that you can't fullscreen: Vim in terminal mode runs in a terminal emulator. On Windows I think you can't make the console go full screen so this is absolutely not related ...
statox's user avatar
  • 50k
5 votes

How can I get gVim on Windows to behave as on Linux?

As Roflo and Rich mentioned in their comment here and here, your problem with being unable to use visual block (I'm not sure what rx command is) is because the system-wide vimrc ($VIM\_vimrc) sources $...
doubleDown's user avatar
5 votes

Poor syntax highlighting in vimwiki (command prompt)

I think this is because Windows' cmd.exe has very limited support for colours; you can only use 16, and those 16 are different from what Unix terminals use (which mostly support at least 256 colours ...
Martin Tournoij's user avatar
5 votes

How can I automate checking for new Vim releases on Windows?

It seems that chocolatey could be the solution to your problem. It is a package manager for Windows. (With the ambition of being "sort of apt-get for Windows") If you are ready to use it to ...
statox's user avatar
  • 50k
5 votes

Can I use Vim with Visual Studio?

External Editing If you have Visual Studio up and running while you edit the project files in a separate window under Vim, every time you switch back to Visual Studio, it looks at the on-disk ...
Warren Young's user avatar
5 votes
Accepted

Vim 8.0 console on Windows 7 opens with no menu bar

I think you are confused about terminology. "Console vim" has never had a menu bar. Here is a snapshot of windows' console vim with all the default settings: (Pretty ugly IMO) No menu bar. This is ...
DJMcMayhem's user avatar
  • 17.6k
5 votes

Windows: gVim or bash

I use both gvim for Windows and Cygwin's terminal vim. I have them configured the same, so in most cases it doesn't matter which one I use. However, they handle file names differently. Gvim for ...
garyjohn's user avatar
  • 6,349

Only top scored, non community-wiki answers of a minimum length are eligible