Questions tagged [microsoft-windows]
For questions specific to Vim implementations on the Microsoft Windows operating system.
251
questions
0
votes
2
answers
32
views
Translate file paths in quickfix list
I'm using msys + vim + ninja + MSVC on windows.
When building, the quickfix list has errors that use the windows path, ie
c:\work\folder\file.cpp
Vim handles it ok-ish, it can open the files, but ...
0
votes
0
answers
41
views
Windows 11 update & GVIM menu disappearing
I haven't seen this issue from any searches - am I the only one with this problem?
I just installed the latest Windows 11 update - & suddenly, all gvim menus have "kind of" disappeared......
0
votes
1
answer
39
views
Copying from Windows clipboard
On my Windows 10 box, when using git bash, I am able to righ-click on git bash window and choose paste to flush the contents of the Windows clipboard to my vi text buffer.
Now, when I ssh into a ...
1
vote
1
answer
76
views
What factors control the color scheme in a terminal?
I am trying to use VIM through new "Windows Terminal" app on a Windows 10 operating system. The VIM app is installed inside a debian WSL app.
I can't wrap my head around how the entire color ...
0
votes
0
answers
27
views
gVim HiDPI Problems on Icons (not font). Properties:Scaling Override : SYstem(enhanced) doesn't work
New PC with high DPI monitor.
Entire VIM window came out very tiny.
I was able to fix the tiny fonts via set guifont command in _gvimrc
However the icons are still microscopic.
I tried gvim.exe -> ...
1
vote
1
answer
45
views
How can I remove duplicates in comma-separated text, ignoring the first column, keeping only unique lines?
I have a sparse CSV file with data shaped like in this simplified example. I am omitting the header, Age,Fruit,Color,Count, but I can include it in my file if needed. You can see that the sparse rows ...
1
vote
0
answers
57
views
Hitting Shift+Backspace in Vim for Powershell results in Îy character
I'm having an issue in Vim for powershell, installed with Chocolatey. Whenever I'm pressing shift and hit the backspace on my keyboard, it enters the characters Îy. I found a couple of related links ...
0
votes
0
answers
30
views
Getting/Setting Terminal Keycode in Win32 gVim
I wanted a binding for <C-;> to <End>, but it looks like that key either doesn't exist or does, but falls outside of the range of keycodes that Vim handles internally, or something.
So, on ...
0
votes
0
answers
27
views
Vim doesn't respect inoremap bind in insert mode for windows wsl config
I have these two configs
:nnoremap <F5> "=strftime("%F %r")<CR>P
:inoremap <F5> <C-R>=strftime("%F %r")<CR>
In normal mode f5 inserts date-time,...
0
votes
0
answers
35
views
How do I open new terminal outside vim to run python code or c code?
In GVIM Windows I want to map a key for running python code in an external terminal.
I've tried
au Filetype python nnoremap <buffer> <silent> <Enter> :exec '!python' shellescape(@%, ...
0
votes
1
answer
73
views
Auto resize vim focused window when open it the first time
I'm using vim-autoresize for resize windows. It uses:
augroup _vim-autoresize
autocmd!
autocmd WinEnter * call autoresize#resize()
augroup end
But WinEnter just changes behavior when your ...
0
votes
0
answers
63
views
Change the cursor appearance in :terminal that uses cmd.exe?
How can I change the style of the cursor in :terminal under Win32 gvim?
Using a clean config my cursor in Terminal mode (typing to shell) looks too much like my cursor in Terminal-Normal mode.
gvim --...
1
vote
1
answer
396
views
Make `!` work with powershell (neovim)
I want to use ! with powershell. I use neovim natively on windows.
I tried these settings
set shell=powershell.exe
set shellcmdflag=-NoProfile\ -NoLogo\ -NonInteractive\ -Command
set shellpipe=|
set ...
2
votes
1
answer
85
views
Make `%!` work in windows
I am on windows natively with neovim-qt .
I tried to use %!python -m json.tool on a valid json file .
It says Expecting value: line 1 column 1 (char 0) .
In powershell : cat .\graphs.json | python -m ...
1
vote
0
answers
46
views
Using inline cmdline expressions in windows
I wondered if I could use inline cmd expression like in the example
:args ``find -iname *.py``
So, I wanted to either use WSL expressions(same as above) or powershell (Get-ChildItem C:\temp | Select-...
0
votes
1
answer
96
views
Neovim deletes itself after some time
I'm new to Vim/Neovim and I'm taking the firsts steps on the editor, but for some unknown reason the nvim.exe binary just deleted itself from the folder three times.
The first time I installed via
...
0
votes
1
answer
110
views
Why is my $HOME variable set to C:\Windows\system32 when I run vim as a different user and what can I do about it?
I've created another domain user in Windows and I'm trying to run gvim from it.
I've created a %USERPROFILE%\_vimrc but when I start gvim and check :echo $HOME it's set to C:\Windows\system32.
I'd ...
2
votes
0
answers
448
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
1
answer
115
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
1
answer
108
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
1
answer
471
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 ...
0
votes
0
answers
75
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
0
answers
275
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 ...
1
vote
1
answer
53
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
1
answer
299
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
2
answers
168
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 ...
0
votes
0
answers
60
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
0
answers
35
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 ...
2
votes
0
answers
92
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
0
answers
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-...
1
vote
1
answer
456
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 "...
4
votes
0
answers
67
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
0
answers
240
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
1
answer
407
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
1
answer
122
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 ...
2
votes
1
answer
51
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 ...
-1
votes
1
answer
409
views
Black Borders in Neovim when using Windows Terminal
Why are these black borders generated when I open Neovim in Windows Terminal?
-1
votes
1
answer
78
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
1
answer
152
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 ...
1
vote
1
answer
200
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
1
answer
777
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, ...
3
votes
2
answers
14k
views
Where is "~/.config/nvim/init.vim" on Windows? [duplicate]
I just download Neovim & I'm trying to configure it following a tutorial, but I
can't find the path $XDG_CONFIG_HOME/nvim/init.vim or
~/AppData/Local/nvim/init.vim. I don't know if a have to ...
1
vote
1
answer
508
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 ...
3
votes
2
answers
304
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 ...
0
votes
1
answer
799
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 ...
2
votes
1
answer
174
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 ...
1
vote
0
answers
37
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.
...
0
votes
1
answer
49
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
2
answers
98
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 ...
1
vote
0
answers
32
views
How can I keep my cursor normal after exiting a terminal buffer?
Right now, whenever I open a terminal with :term, my cursor changes from a half-height/orange cursor to a full-height/gray cursor (depending on the emulator).
When I navigate back to another window, ...