Questions tagged [microsoft-windows]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
36 views

`term_start` fails to have `-m` option for shell like bash when using the shell path to invoke

I uses vim 9.1 shipped with bash 5.2.26(1)-release (x86_64-pc-msys) both installed by git-bash. :h terminal-use says :term will start one "terminal emulator" and ran the job. Then when I ...
An5Drama's user avatar
  • 125
0 votes
1 answer
22 views

Why is config files in Windows not in .config

I actually have been wondering for a while why does neovim not use the .config directory that windows has instead of appdata/local
Andre Mossi's user avatar
2 votes
2 answers
87 views

Why does my Vim/VsCodeVim requires double tapping '^' to go to the first character of the line?

Why does my Vim requires double tapping ^ to go to the first character of the line instead of a single tap, and is there anything I can do to change it? I'm on Windows 10 with a the Vim plugin '...
Qwert Yuiop's user avatar
0 votes
0 answers
66 views

Weird interaction between gp.nvim and syntastic

I'm using this minimal setup (note that I'm on Windows and that I couldn't recreate this problem on Linux): filetype plugin indent on filetype plugin on call plug#begin() Plug 'Robitx/gp.nvim' Plug '...
Fedja's user avatar
  • 45
1 vote
1 answer
260 views

Lazy.nvim - change plugin install location for Windows 10

Is there a way to change the plugin install location from: C:\Users\user1\AppData\Local\nvim-data\lazy to let say: C:\nvim-data? After installing LazyVim, cloning into that folder fails so none of the ...
ThomasDKim's user avatar
2 votes
1 answer
166 views

How to escape spaces on Windows path in autocmd?

I use the following autocmd to generate a template for markdown files in Vim. au BufNewFile C:/my_dir/*.md :silent 0r !C:/my_dir/template.py '%' Our IT department now forced me to move my files to a ...
Meinrad's user avatar
  • 25
2 votes
1 answer
368 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 ...
vvenk's user avatar
  • 33
1 vote
1 answer
210 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 ...
Max's user avatar
  • 113
0 votes
1 answer
780 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. ...
icesentry's user avatar
0 votes
0 answers
29 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 ...
Antonio Sesto's user avatar
1 vote
2 answers
186 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 ...
thirstyice's user avatar
0 votes
0 answers
52 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 ...
ben's user avatar
  • 11
1 vote
1 answer
101 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: ...
Barzi2001's user avatar
  • 550
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/...
Syed M. Sannan's user avatar
0 votes
0 answers
111 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 ...
3N4N's user avatar
  • 5,704
1 vote
2 answers
298 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:...
paradroid's user avatar
  • 367
1 vote
0 answers
81 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.
Barzi2001's user avatar
  • 550
0 votes
1 answer
36 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 ...
paradroid's user avatar
  • 367
1 vote
2 answers
201 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 ...
paradroid's user avatar
  • 367
1 vote
2 answers
138 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 ...
Antonio's user avatar
  • 287
1 vote
2 answers
833 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 (...
Tom's user avatar
  • 111
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 ...
paradroid's user avatar
  • 367
2 votes
1 answer
59 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 .....
Denizen's user avatar
  • 41
1 vote
1 answer
1k 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: ...
ConlangBabble's user avatar
0 votes
2 answers
159 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 ...
user92979's user avatar
  • 101
0 votes
0 answers
277 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......
ChrisNY's user avatar
  • 101
1 vote
1 answer
888 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 ...
Gergely's user avatar
  • 293
1 vote
1 answer
207 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 ...
Asad Munir's user avatar
1 vote
1 answer
491 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 ...
Kevin Duggan's user avatar
1 vote
0 answers
126 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 ...
user32882's user avatar
  • 111
0 votes
0 answers
59 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 ...
Arii's user avatar
  • 111
0 votes
0 answers
59 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,...
eguneys's user avatar
  • 145
0 votes
1 answer
158 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 ...
Pham Hung's user avatar
  • 113
2 votes
2 answers
2k 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 ...
eyal karni's user avatar
  • 1,106
2 votes
2 answers
168 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 ...
eyal karni's user avatar
  • 1,106
1 vote
0 answers
84 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-...
eyal karni's user avatar
  • 1,106
0 votes
1 answer
262 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 ...
Tarso Boudet Caldas's user avatar
0 votes
1 answer
360 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 ...
leeand00's user avatar
  • 3,577
5 votes
1 answer
3k 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 ...
Revise's user avatar
  • 201
0 votes
1 answer
505 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 ...
3N4N's user avatar
  • 5,704
0 votes
1 answer
194 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 ...
Greg H.'s user avatar
3 votes
1 answer
2k 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 ...
Bodhi Daruma's user avatar
0 votes
0 answers
348 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 ...
Pham Hung's user avatar
  • 113
0 votes
0 answers
511 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 ...
Zey_77023's user avatar
1 vote
1 answer
133 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 ...
Haoshu's user avatar
  • 141
0 votes
1 answer
600 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: ...
Geoff's user avatar
  • 111
1 vote
2 answers
456 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 ...
Sean McMillan's user avatar
0 votes
0 answers
121 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 ...
gwicke's user avatar
  • 1
0 votes
0 answers
67 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 ...
Paul CyberCitizen's user avatar
2 votes
0 answers
140 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 ...
Jacktose's user avatar
  • 863

1
2 3 4 5 6