20
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,~/...
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 -> ...
17
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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/...
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 ...
7
votes
Not able to type Unicode with Gvim and VIM on Windows 7
The default encoding seems to be latin1:
:set encoding?
encoding=latin1
When entering characters, Vim tries to convert them from the incoming character set (probably unicode) to latin-1. This ...
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 ...
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 ...
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 ...
7
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....
6
votes
Accepted
Why do symbols look ugly in gvim?
If you have a recent Vim, you may try to enable DirectX rendering. It should improve "wide" font rendering, among other things. Here's an example vimrc snip:
if has("gui_running")
set guioptions=...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
microsoft-windows × 266gvim × 81
neovim × 34
vimrc × 33
terminal × 16
vimscript-python × 15
key-bindings × 14
shell × 12
external-command × 10
vimscript × 8
syntax-highlighting × 8
installing × 8
vim-windows × 7
plugin-system × 7
error × 7
os-clipboard × 7
unicode × 7
font × 7
colorscheme × 6
encoding × 6
command-line × 5
cut-copy-paste × 5
plugin-you-complete-me × 5
cygwin × 5
wsl × 5