Questions tagged [microsoft-windows]
For questions specific to Vim implementations on the Microsoft Windows operating system.
263
questions
1
vote
2
answers
97
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 ...
7
votes
2
answers
2k
views
Copying From Vim to Ubuntu Bash on Windows
Note: this question is specific to the relatively new Ubuntu Bash on Windows system.
So it seems possible to paste into Vim from the Windows clipboard by simply right clicking in insert mode after ...
2
votes
1
answer
216
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 ...
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 ...
4
votes
2
answers
20k
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
333
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>"...
0
votes
0
answers
34
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 ...
7
votes
2
answers
2k
views
Vim error: Unable to open swap file when using backslash as path separator in Windows shell
I'm using cmder as my Win7 shell. I see the following behaviour:
Works fine (file in current directory):
vim test
Works fine (absolute path):
vim ~/test
Works fine (relative path with forward ...
0
votes
2
answers
81
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
1
answer
117
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 ...
6
votes
2
answers
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 ...
13
votes
3
answers
10k
views
Vim on WSL: synchronize system clipboard? (set clipboard^=unnamed)?
While using WSL/Bash for Windows I want to be able to use y yy 3y and p the same way they always work in vim, but connecting to the system clipboard shared by all apps, not to vim's internal clipboard....
2
votes
4
answers
2k
views
How do you add a local plugin in Vundle on Windows?
I am using Vundle on Windows gVim. I have a plugin that I am writing myself called hotdogstand that is stored in my local filesystem at vimfiles\hotdogstand, and it is not tied to a Github repository. ...
1
vote
1
answer
182
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
4k
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
1
answer
754
views
Black Borders in Neovim when using Windows Terminal
Why are these black borders generated when I open Neovim in Windows Terminal?
1
vote
1
answer
471
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 ...
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 ...
0
votes
1
answer
155
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 ...
1
vote
1
answer
489
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: ...
2
votes
4
answers
2k
views
Why cannot I make Vim (not gVim) fullscreen?
I use Vim on windows (not gVim) because I think, that windows menu bar is ugly. So I use Vim, but I cannot fullscreen it. When I try it caps at cmd max size (1/4 size of screen) and won't be bigger.
...
1
vote
1
answer
68
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:
...
0
votes
0
answers
109
views
gVim 9.0 32-bit on Windows 10 not accepting High DPI settings
This is for gvim.exe 9.0.0.0 32-bit on Windows 10 Enterprise 21H2 on an HP ZBook 15 G6 with high DPI display running 3840x2160. It's what's shipping nowadays for developer laptops. Makes every app an ...
6
votes
1
answer
2k
views
How do I open a file that starts with an exclamation mark using filename completion?
In gVim, I want to open a file that starts with an exclamationmark, say, for example, !this_is_my_file_whose_name_is_rather_long.txt.
So, I type :e !this followed by pressing the tabulator.
gVim ...
-3
votes
1
answer
607
views
How to associate gvim with extensionless files on Windows? [closed]
I would like to set gvim as the default program for opening files which do not have an extension (e.g. no .txt, .php, .js, .css, .html etc...) suffix as part of the file name.
e.g.: README or INSTALL.
...
6
votes
2
answers
5k
views
Portable Neovim. How to change default data folder? How to avoid registry entries?
I'm trying to make a protable Neovim so I can use my plug&play IDE from a USB thumbdrive on any offline Windows computer.
I managed to store my plugins and my sysinit.vim onto the USB drive and ...
0
votes
0
answers
54
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
156
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
2
answers
121
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
0
answers
64
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
28
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
...
2
votes
2
answers
133
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
2
answers
335
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 (...
1
vote
1
answer
71
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 ...
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
47
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 .....
6
votes
5
answers
5k
views
Change $HOME before it gets accessed
I'm using vim 8.1 on windows.
The IT department has set $HOME to a slow network drive.
Every time a file gets written to $HOME vim slows down.
I have $VIM/vimrc with the following content.
let $HOME ...
2
votes
0
answers
96
views
Does Windows GUI Vim perform font substitution for glyphs unavailable in current font?
MacVim's documentation specifically (if obliquely) mentions font substitution, and I've found evidence online that GTK2 gVim does it too.
But does Windows gvim?
N.B. I'm already aware of the '...
4
votes
2
answers
463
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
0
answers
132
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......
21
votes
4
answers
12k
views
How do I get gvim to start maximised in Windows?
I'd like to have my editors give me as much screen real estate as possible since it increases my ability to see most of the code at once.
The problem is that gvim seems to give me either an 80x25 ...
1
vote
1
answer
148
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
340
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
104
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
45
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
46
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,...
-1
votes
2
answers
2k
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".
1
vote
1
answer
99
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 ...
1
vote
0
answers
66
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
226
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 ...