Skip to main content

Questions tagged [microsoft-windows]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
112 views

Caps-Lock plus Shift for lower case alphabet

I am using gVim on Microsoft Windows. Consider two types of alphabet entering: When the Caps-Lock is off, enter upper case alphabet with Shift-. When the Caps-Lock is on, enter lower case alphabet ...
Limina102's user avatar
  • 165
1 vote
1 answer
28 views

Very slow file operations by GVim on Windows shares

tldr: I have read and followed https://stackoverflow.com/questions/2103968/gvim-runs-very-slowly-when-editing-files-on-a-windows-share but none of the suggestions worked. I've been using Vim 8.1 on ...
musbur's user avatar
  • 121
1 vote
0 answers
39 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
28 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
0 votes
0 answers
19 views

Get Stuck When Opening a file with thousands of lines by LSP-enabled Vim on Windows MSYS2

I am trying to recreate the Vim environment on Windows MSYS2 with my Linux Vim settings. But I found that when the LSP (prabirshrestha/vim-lsp) is turned on, sometimes the file gets stuck when opening ...
aRedR's user avatar
  • 1
2 votes
2 answers
91 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
71 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
  • 55
1 vote
1 answer
473 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
221 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
514 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
226 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
1 vote
1 answer
680 views

How can I debug a nerd font not working on Windows + Neovim?

I am on Windows using AstroNvim. On other machines and installs, merely installing my nerd font is enough to make it work but this time and installation, all icons stay blank. What steps can I take to ...
samuelnihoul's user avatar
0 votes
0 answers
203 views

Yank to host clipboard when using nvim from Docker (WIndows)

NVIM v0.9.1 Windows10 I'm using neovim in Docker Desktop. Usually, when I use nvim in WSL2, I can yank / paste via "+y / "+p. But if neovim in Docker Desktop doesn't support the same ...
keisuke murota's user avatar
0 votes
1 answer
932 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
34 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
205 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
53 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
0 votes
2 answers
282 views

Syntax highlighting with only some allowed colours

In my ubuntu gnome-terminal I have vims default syntax highlighting color scheme + some color-tuning made in my gnome-terminal to filter out most colors with green except red, purple and brown. ...
MD. Mohiuddin Ahmed's user avatar
1 vote
1 answer
104 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
  • 630
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
1 vote
0 answers
123 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,764
1 vote
2 answers
317 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
  • 377
1 vote
0 answers
88 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
  • 630
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
  • 377
1 vote
2 answers
209 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
  • 377
1 vote
2 answers
156 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
908 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
  • 377
2 votes
1 answer
66 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
185 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
310 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
938 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
214 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
517 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
129 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
63 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
60 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
168 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
  • 153
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,136
2 votes
2 answers
170 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,136
1 vote
0 answers
86 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,136
0 votes
1 answer
279 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
382 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,601
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
  • 221
0 votes
1 answer
523 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,764
0 votes
1 answer
202 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
361 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
  • 153
0 votes
0 answers
532 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
2 3 4 5 6