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 -> ...
user avatar
  • 358
17 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,~/...
user avatar
16 votes
Accepted

How to deal with string containing spaces in Vim script?

The function you are looking for is fnameescape(). It will escape all special characters in a given string containing a path to a file to match the standard of the current operating system. For more ...
user avatar
16 votes
Accepted

How can I install 64-bit Vim on Windows?

I think tuxproject.de is the way to go and I think, it will pick up Python dll, if they are in your path and are also 64bit. The easy way is to copy them to your .vim directory, to make sure vim will ...
user avatar
15 votes
Accepted

How to check whether Vim is built as a 32-bit or 64-bit application?

Testing the value of the win64 feature should tell you: :echo has("win64") If the output is 1, then your Vim installation is 64-bit. See: :help has() :help feature-list and search for 64.
user avatar
  • 5,934
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 ...
user avatar
  • 46.5k
13 votes
Accepted

How do I stop my window from moving when using vsplit?

This happens because when vertical splitting the window, vim needs to add a vertical scrollbar, which causes vim to recalculate the visual size and eventually makes vim jump to a different screen ...
user avatar
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, ...
user avatar
12 votes
Accepted

Tag navigation using CTRL+] does not work with Non English keyboard on Windows

Say hello to knowledge fragmentation: https://stackoverflow.com/q/6932702/520162 This question was already asked and answered on StackOverflow. The key is to press CTRL and the key that is located ...
user avatar
  • 246
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 ...
user avatar
11 votes
Accepted

Keeping personal vimrc and syntax files etc in source control?

Since 7.4, all your configuration files (even your vimrc) are expected to be in this directory: %userprofile%\vimfiles\ But the name and location of that directory only matter to Vim. From Git's ...
user avatar
  • 33.1k
11 votes

Neovim on windows 10 - is it ready and how to set it up?

As stated on neovim wiki: Windows support is (currently) experimental. To try it out, you need nvim.exe and a front-end such as Neovim-Qt. However there isn't a list of all features that are ...
user avatar
11 votes
Accepted

How do I save a read-only file in Vim for Windows?

As on other vi/vim versions, you can use :w! to force the write, as long as you have permissions to override the read-only property. For example, if you have set the file as read-only, the above will ...
user avatar
  • 226
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 ...
user avatar
  • 359
10 votes
Accepted

Visual Differences between vim on virtualbox Ubuntu guest (through putty) OR gVim on Windows host

PuTTY, like other high-color terminals, only supports a fixed color palette of 256 colors. GVIM can use the full 24-bit RGB color space; that's why you see "finer" nuances there. As for attributes, ...
user avatar
  • 16.9k
10 votes

How do I get gvim to start maximised in Windows?

In alternative to the maximized window, why do not gain more space for a full vim multiwindows editing experience with an autostart FULL SCREEN mode? ;-) FULL SCREEN screenshot of the final result (=...
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 ...
user avatar
  • 6,380
10 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 ...
user avatar
9 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. ...
user avatar
  • 10.4k
8 votes
Accepted

Contents of _vimrc file depend on how it is opened

You're seeing the effects of the Windows File System Redirector. When you edit files in %ProgramFiles% without administrative rights / user account elevation (which isn't allowed in modern version of ...
user avatar
  • 16.9k
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 ...
user avatar
  • 495
8 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....
user avatar
8 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 ...
user avatar
  • 483
8 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 ...
user avatar
  • 151
8 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 ...
user avatar
  • 8,655
8 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 ...
user avatar
  • 8,655
7 votes
Accepted

How to resize vim on Windows 7?

You can set the 'lines' and 'columns' options from within Vim to resize the window. For example: :set lines=55 :set columns=120 You can add this to your vimrc file to do it automatically. This ...
user avatar
7 votes

Change vimtutor language

1'st method Run vimtutor (from command line) with 2 letter language code like: vimtutor en (for English) vimtutor pt (for Portuguese) etc... 2'nd method Open tutor with different language with: ...
user avatar
  • 1,478
7 votes
Accepted

How do I use Python plugins on Windows?

All right, apparently the state is this: VIM on Windows supports python 2.7.9, not 2.7.11. It might work with 2.7.10, I did not test it. Even though I compiled VIM on Windows with a reference to the ...
user avatar
  • 311

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