Questions tagged [microsoft-windows]
For questions specific to Vim implementations on the Microsoft Windows operating system.
266
questions
2
votes
1
answer
96
views
Using the WSL terminal with Neovim
I have Neovim installed on Windows. I use WSL for running Python and C code. So I'd like to map a key to get Neovim to run a shell command in WSL directly from the Neovim editor. But I seem to be ...
1
vote
1
answer
146
views
Error when using vim-plug from git-bash
I just installed vim-plug to use the doxygen plugin. Added
call plug#begin()
Plug 'vim-scripts/DoxygenToolkit.vim'
call plug#end()
to the .vimrc (_vimrc because Win10..). Using the doxygen plugin ...
0
votes
1
answer
314
views
Pasting from system clipboard adds an unwanted new line
On windows, using neovim, with clipboard=unnamedplus , when I paste from the system clipboard using p or :put , it will always paste in a newline , even if the content of the clipboard has no newline. ...
0
votes
0
answers
25
views
Problems with libEG.dll after installing neovide
After installing neovide on my Windows 11 Pro machine, several other apps started to fail because they do not find:
C:\tools\neovim\nvim-w64\bin\libEG.dll
So I uninstalled neovide, restarted my ...
1
vote
2
answers
164
views
LeftMouse focus window without moving cursor
Is there a way for clicking on a Vim window to focus that window if inactive (without moving the cursor), then move the cursor if the window is already active?
Here's what I've got so far:
function ...
0
votes
0
answers
43
views
Colorscheme becomes weird after re-installing Vim
I'm using vim on windows 10.
I just finished re-installing my Vim, without removing all of the installed plugins or even changing any configuriations in _vimrc.
now when i start vim, my colorscheme ...
1
vote
1
answer
85
views
Escape % when using :!echo %HOME% with cmd.exe
When I run:
:!echo %HOME%
On Windows 10 I expected to get the location of my home directory.
But Vim interpret the symbol % as the current file name, in-spite of the ! in front of echo.
Hence, I get:
...
2
votes
1
answer
5k
views
How to install LunarVim on Windows?
I am installing LunarVim on Windows using the official docs available at: https://www.lunarvim.org/docs/installation
I run:
bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/...
0
votes
0
answers
88
views
Set fallback font in gvim
gVim provides an option, :h guifont, to set the font of the gui window. Although it accepts a comma-separated list of fonts, it selects the first available font. If a symbol doesn't exist in the ...
1
vote
2
answers
251
views
Python not working on Windows
I have a couple of plugins which use Python. They work fine on Linux but on Windows I am having difficulty in getting Python recognised.
" Language Providers
if has('unix')
let g:...
1
vote
0
answers
76
views
set shell = powershell. But I want to use the Anaconda powershell
Is there any way to use the Anaconda powershell instead of the standard Windows powershell?
In my .vimrc I have
set shell=powershell
set shellcmdflag=-command
Running on Vim 9 for Windows.
0
votes
1
answer
35
views
ctrl-x, ctrl-k spelling completion not working on Windows
I use the same configuration on Linux and Windows. This is the config for spelling:
" Set dictionary and regenerate spl files on startup
set dictionary+=/usr/share/dict/words
set spelllang=en_gb
...
1
vote
2
answers
174
views
Does gvimfullscreen.dll working with gVim 9.0 on Windows?
I used to use gvimfullscreen.dll to toggle a full screen window state on gvim for Windows. It made gvim full screen, not maximised, with no titlebar.
I have not used gvim on Windows for some time ...
1
vote
2
answers
112
views
Gvim Python loading issue (despite being correctly installed)
I found a lot of questions about it, some problem was about 32 or 64 bit, other was about python support compiled in vim, etc.
None was my case.
Preamble: Software installed
I installed Python on ...
1
vote
2
answers
591
views
No syntax highlighting in git commit with nvim
I have installed nvim using scoop on two Windows 11 systems. The installation works fine on my laptop (Surface Laptop 3). On my desktop, when I run git commit with nvim set as my editor, the terminal (...
0
votes
1
answer
42
views
On Windows, putting lines with P results in the * register at the end of current line instead of the " register and shifting the current line down
I use the same configuration on Windows as I do on Linux. It works normally on Linux but on Windows (vim and gvim) I am getting this odd behavior when putting lines with P:
Steps:
I yank a line with ...
2
votes
1
answer
54
views
Why is my Vim build failing on WSL?
I'm running Ubuntu 20.04.4 under WSL2 on Windows 11. I've cloned https://github.com/vim/vim.git in the environment. (The latest commit is tagged as v9.0.0260.) When I go to the directory and do this .....
1
vote
1
answer
810
views
The python library could not be loaded
I am trying to get UltiSnips to work with gVim on my Windows 10 machine and for some reason I keep getting the error:
Error detected while processing function UltiSnips #TrackChange:
line 1:
E370: ...
0
votes
2
answers
125
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
213
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......
1
vote
1
answer
736
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
182
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 ...
1
vote
1
answer
441
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
118
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
49
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
56
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
1
answer
138
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 ...
2
votes
2
answers
1k
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
2
answers
149
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
75
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
227
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
291
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 ...
5
votes
1
answer
2k
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
469
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
181
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 ...
3
votes
1
answer
1k
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
273
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
473
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
122
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
534
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
397
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
102
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
60
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
136
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
24
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
873
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 "...
5
votes
0
answers
143
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 ...
3
votes
0
answers
423
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
638
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
233
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 ...