Questions tagged [microsoft-windows]

For questions specific to Vim implementations on the Microsoft Windows operating system.

Filter by
Sorted by
Tagged with
2
votes
0answers
27 views

Vim /usr/bin/bash: /s: No such file or directory

Repost from Stackoverflow; I read a comment which directed me here saying it would be more helpful. Just set up nvim; unfortunately, the following error is plaguing the setup. Whenever I try to ...
0
votes
1answer
15 views

Global variable not setting correctly when starting neovim

I'm trying to setup separate configs for my WSL, Windows, and MSYS2 environments in the same init.vim with simple if-else statements. So, I'll need to know what environment I'm in. To know that I ...
0
votes
0answers
15 views

gvim 8.2 on Windows 10 - Right Click Taskbar Icon - Recent Files won't open files with .sql extension

I'm having a problem opening certain files (file extensions .sql, .ora) from gvim Version 8.2 using the Windows taskbar icon recent files list. I have associated the .sql file extension with gvim. No ...
0
votes
1answer
60 views

Using the execute shell command (:!) on Windows and MSYS2

I'm new to neovim (and vim in general), and I'm trying to use it on Windows with MSYS2. I noticed they have a package for vim, but not for neovim. I used the neovim installed through chocolatey ...
4
votes
1answer
7k views

Getting Python support for gVim 8.1 (Windows 10)

As an extension (follow-up question) of the answer here: 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 ...
1
vote
1answer
89 views

Cannot remap Control Backspace and Control Shift Z in Windows

What's up with Control Backspace, and Control Shift Z for the Windows cmd terminal? I cannot seem to remap them. All the former does in Insert Mode is type Î, and then make the "z" letter ...
8
votes
1answer
173 views

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

Following up my earlier question (How can I install 64-bit Vim on Windows?), I'd like to automate updating Vim. On Linux, I let the package manager and its frontends take care of checking for updates ...
1
vote
1answer
256 views

How to run/debug ahk (AutoHotScripts) scripts using Gvim, vim

How to execute ahk (AutoHotScripts) scripts using Gvim. Let say I have interpreter: "C:\Program Files\AutoHotkey\AutoHotkey.exe" /ErrorStdOut "d:\ahk\myscript.ahk" 2>"Syntax-Error Log.txt" While ...
0
votes
0answers
16 views

Use python through pythonthreehome and pythonthreedll?

I install python use msys2 in windows but i don't know how to put the path to vim Here is my vim --version: Here is where i install python3: And python3 dll: Vimrc config: I use python for run ...
0
votes
0answers
59 views

How do I make sure terminal vim has syntax highlighting with 'cursorline' and 'termguicolors'?

I searched this issue on the web to no avail and it's most likely not here too. The issue I'm facing goes like this I am trying to switch to vim since I find it cool. I was writing my vimrc and ...
0
votes
1answer
52 views

Can't use the usual !!foo in vim // gvim on Windows 10 - missing tmp files

I'm running vim // gvim 8.2 (fresh off of vim.org, and was before---just re-installed to do so as administrator, per instructions I'd missed before). I've been getting this since getting this Windows ...
0
votes
1answer
154 views

How do I configure vim to unzip files with 7zip?

In an answer to this particular question, it's said that it's enough to have unzip installed and available to make vim able to unzip files on the fly. However, I'm wondering if there's a way to ...
1
vote
0answers
25 views

How to show where the word is found when using "auto complete" if it's "The only match"

When I type some letters and hit CTRL+P, vim shows a list of possible words that may complete my letters. On the left of the list, it shows the completed word. And on the right of the list, it shows ...
0
votes
1answer
79 views

vim-test :TestSuite return message Not a test file

It's a really simple setup. I'm actually following along with the modern vim book. (I've been using vim emulation on IDEs for years and want to fully dive in). Anyway, my project structure is: ...
1
vote
2answers
97 views

How can I detect if the vim I'm running on is the Git for Windows vim? [duplicate]

I have a shared .vimrc that I use across platforms. It works fine in most circumstances, but looks terrible when I run git commit from the command line. I want to make my color scheme not load when ...
5
votes
1answer
909 views

How do I remap "å" to type "å"?

I recently came over some use for letters like æ, ø, and å. For context, these are available on my keyboard, and work fine in other programs. It's also a Norwegian keyboard if that's relevant. With ...
1
vote
1answer
216 views

What is the difference between signed vim and unsigned vim?

On the vim.org download page, there's an option to download a "signed" version of vim for windows (https://www.vim.org/download.php). What is the difference between using one of the "...
0
votes
0answers
33 views

Just installed GVim 8.2 but don't see the File, Edit, etc. menu items at the top of the window

Newbie here, sorry. I just installed GVim 8.2 on Windows 10 but I was expecting to see the familiar menu items at the top: File, Edit, etc. when I open GVim or edit a file. I have seen them when ...
0
votes
0answers
29 views

Ex - silent mode won't read commands from a file when stdin is redirected

I'm starting vim in Ex mode, silent mode, on Windows 10, in a standard command prompt window. I'm trying to re-direct stdin from a file. I'm using the terminal version of vim 8.2.2824. It doesn't ...
5
votes
2answers
6k views

Gvim 8.1 on Windows 10 won't source $HOME\_vimrc

I have a $HOME\_vimrc present, but it doesn't show up in the output of :scriptnames. And when I run gvim -V, it reports: could not source "$HOME\_vimrc" The only thing in my $HOME\_vimrc is the ...
1
vote
0answers
48 views

Windows Vim overwrites WSL file mode

I'm using gVim on Windows to edit files in WSL2 Ubuntu via the \\wsl$ mapping. When I :write in Vim, it overwrites the linux file mode/permissions with 644/-rw-r--r--, no matter what the mode was to ...
0
votes
0answers
129 views

Suppress warning pop-up

I'm on Windows using gVim, Vim version: 8.2.2003. I get a warning pop-up with the following error message: Some language features are not available. To access all features, enable [strictTemplates](...
1
vote
2answers
457 views

How do I get the name of the current terminal in Vim?

I'm currently running Vim in Windows 10. I want to specify in my config file certain settings for when I'm running Vim in Cmder, different settings when I'm running Vim in Alacritty, etc. When in ...
-1
votes
1answer
165 views

Black Borders in Neovim when using Windows Terminal

Why are these black borders generated when I open Neovim in Windows Terminal?
15
votes
4answers
41k views

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

I am a frequent user of the Vim editor on Linux and now I want to use it on Windows. I downloaded Vim for Windows, which happens to be gVim. Several features of Vim doesn't work in gVim 7.4 like ...
0
votes
0answers
23 views

Windows save type breaks vim

So I wanted to use this plugin but if I start it, I'm getting this error message: (I changed that line a bit to hash('nvim') but the ^M still breaks the code because it has a the microsoft line-...
6
votes
2answers
2k views

Does powerline and vim work in windows using Cmder shell terminal?

I am using the cmder under windows 7. I am using Vim version 7.4; I'm using the airline plugin and I installed the powerline font/patch. I followed the instruction and also added the following to my ...
4
votes
0answers
45 views

Intermittently cannot switch from Vim terminal to other panes

I've looked at quite a few other posts and haven't found a similar problem. I've recently begun using WSL and Vim and love it. Most of the time, it works great and I use CTRL-W-h/j/k/l to navigate ...
2
votes
2answers
260 views

How do I pass a full filepath to a function in a Vim plug-in?

I have an exe program that checks for certain errors in a text file. I want to create a shortcut (like \+M) to run that exe file against the text file. My exe file's path is C:\Users\xyz\Documents\...
1
vote
3answers
6k views

Fatal Python error: Py_Initialize: unable to load the file system codec ImportError: No module named 'encodings'

I am new to vim. As much as I love it, there seem to be a lot of bugs or errors every time I try doing something. I am unable to run the plugin "browserlink.vim" (https://github.com/jaxbot/...
-1
votes
1answer
52 views

make appending strange folder to my makeprg on Windows

I recently came to use NeoVim and I was trying to configure my vim to run a single file using :make command (My g++ is from MinGW), I tried to use :let &makeprg = 'g++ -Wall -Wextra -std=c++17 -o %...
2
votes
0answers
111 views

<ESC> does not exit command-line mode. Neovim on tmux on WSL

nvim is not exiting command-line mode when the ESC key is hit. E.g., the key sequence :ff<ESC>ff gives :ffff at the command-line prompt. The expected behavior is that the first :ff be discarded ...
3
votes
1answer
136 views

Windows 10 Clipboard

Windows 10 has a clipboard history which can be accessed using WIN+V it has a recent history of all your copy and paste. When using this in VIM and trying to paste from it doesn't work it acts like ...
0
votes
1answer
99 views

How to open pdf from local path with parameters using gf/gx like command?

I have a path name with page number in vim buffer and I want to open it using Sumatra PDF. d:\drivers\instruction.pdf -page 40 Instruction above works fine using command line - cmd.exe and it opens ...
2
votes
1answer
121 views

A problem when use ALE for syntax checking and gvim for vivado's editor

VIM version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 14 2020 22:03:16) OS information: Microsoft Windows 10 Professional version 2004 (OS Version: 10.0.19041) Problem Description: I use gvim ...
2
votes
1answer
44 views

Navigating between split vi windows [duplicate]

On Windows OS, I am using Chrome web browser to ssh into a remote Linux terminal and using vi there. One can use Ctrl-w + hjkl to navigate among split vi windows. However, the problem is Ctrl-w ...
3
votes
1answer
1k views

Using Vim-Plug with portable version of gvim (windows)

My university does not (quite understandably) provide administrative rights to users on their public machines (which run only MS Windows 7 OS). As a regular vim user, I use a lot of plugins (...
1
vote
1answer
106 views

vim-dadbod with Azure sql uses SQLCMD with quotes that break it

Greetings Vim Experts! I'm using gVim on windows 10, and installing the plugin vim-dadbod to work with Azure SQL (SQL Server). I believe the plugin is installed correctly as I see the connection ...
0
votes
1answer
278 views

`set guicursor` has no effect in VIM on Windows

Neither set guicursor=i:ver25-iCursor nor set guicursor=a:blinkon0 have any effect in VIM on Windows. I expected them to change the caret from a block to a line and to stop it from blinking, ...
1
vote
1answer
271 views

In Windows, plugins are not loading when gVim is started from a file

My gVim works perfectly when I open Vim\vim82\gvim.exe. However, when I right click a file and select open with > gVim the plugins do not load, while other settings in my _vimrc are applied like ...
0
votes
1answer
462 views

Gvim E370: cannot load library python36.dll with installed Python 3.8

I get often error E370: cannot load library python36.dll while using different plugins like: Fugitive.vim. I have Python 3.8 install with proper PATH. Is it possible to force Gvim to use python38.dll ...
1
vote
0answers
36 views

How to get gVim to respect the aero snap keyboard shortcuts, ie Win+Left, Win+Up, etc

Is there a way to get gVim on Windows 10 to respond to the Windows aero "snap" shortcuts that move the window the left, right, maximize, minimize? Ie, Win+Left, Win+Right, Win+Down, Win+Up. ...
2
votes
1answer
33 views

Required to write gvimdiff file1 ..\..\..\file2 to diff correctly

I'm trying to diff two files using gvimdiff file1 file2. This works in certain parts of my file system, but if I'm several directories deep, it stops working. Instead, it'll open three files and one ...
0
votes
1answer
44 views

Adding python directory

After following some advice my vimrc contains: set rnu set nu set autoindent set pythonthreedll=C:\Program Files (x86)\Vim\vim82\autoload\python37.dll set pythonthreehome=C:\Program Files (x86)\Vim\...
1
vote
2answers
87 views

Open file, make changes, save it as a new one. In one step, using the Windows command prompt

I have a file foo.txt with just a one line ab. I want to launch Vim in such a way that it will open this file, swap characters using xp, and then save it as bar.txt. Something like this: gvim foo.txt ...
0
votes
1answer
129 views

Python script not running through vim but runs on Windows CMD

I have recently switched to vim from VS Code. I have Vim 8.2. I have put these lines in my _vimrc file so that I can run python in vim by pressing F9:- autocmd FileType python map <buffer> <...
0
votes
0answers
124 views

Vim syntax highlighting becomes crazy

Some overview and history. Environment: OS: Windows 8.1 Emulator: cygwin (mintty) Terminal: xterm-256 Vim: v8.0 (Cygwin edition) Vim setup: Plugin manager: VimPlug Enabled plugins: Plug 'scrooloose/...
-2
votes
1answer
427 views

Windows: disable Vim's start or intro screen

The same as the existing question, but for the Windows console version. I do not see "startify.vim".
2
votes
0answers
104 views

YouCompleteMe unavailable: unable to load Python [duplicate]

I have done PlugInstall but it gives: YouCompleteMe unavailable: unable to load Python. The same error happens while loading UltiSnips: E370: Could not load python36.dll My vimrc: set rnu set nu ...
7
votes
1answer
7k views

How to get Python support on MS Windows?

I've installed the latest version of Vim to date (8.0) for Windows. But the version of Vim I've got does not have Python support. I've downloaded the .exe version directly from vim.org. echo has('...

1
2 3 4 5