Questions tagged [microsoft-windows]

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

65 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
841 views

How to create an Edit-with-Vim context menu entry for Vim 8.1 on Windows 10

The Explorer context menu entry does not get created by the installer. Windows 10 Pro v1803 (64-bit). What I have already tried: Installed Vim 8.1 using the stock Windows installer https://ftp.nluug....
  • 151
5 votes
0 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 ...
4 votes
0 answers
71 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 ...
4 votes
0 answers
2k views

ftplugin not loading

This is my .vimrc set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle....
  • 151
4 votes
0 answers
2k views

Unable to map ctrl-l

My _vimrc contains the following lines: set nocompatible source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin nmap <c-l> :w<CR> nmap <c-m> :w<CR> ...
  • 141
4 votes
0 answers
788 views

Vim is taking a really long time to open spelling suggestions

I have recently reinstalled vim and I noticed that the Spell checking is working very slowly. Whenever I do a z= on an incorrectly spelled word, Vim takes a good 4-5 seconds to show the spelling ...
3 votes
0 answers
105 views

Syntax highlighting shows a yellow bar on Windows 10

Good afternoon, I just started using the Ubuntu shell from Windows 10, and I copied my Mac .vimrc file. Everything seemed normal until these yellow bars started showing up at the end of some lines. ...
  • 31
3 votes
0 answers
196 views

How to get vim on Windows to start quickly

I installed Vim 8.1 with all the default options on Windows 10. I didn't modify vimrc. It takes more than 5 seconds to launch Vim (or gvim) each time I edit a file, and has just as long of a delay ...
3 votes
0 answers
378 views

How to load vim-javascript using Vim 8 native package manager?

I am long time Vim (Windows 10, gVim 8.1) user, happy as a clam with Vim 7. I have not used any of the plugin managers, just the one-off plugin from vim.org. I went looking for plugins to help with ...
3 votes
0 answers
258 views

Strange characters appear after leaving insert mode on Windows

I use Vim v7.4 on a Windows laptop. Recently, I copied my .vimrc from a Mac, only to find that every time I leave insert mode, a sequence of strange characters will appear: These characters (right ...
  • 139
2 votes
0 answers
643 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 ...
  • 71
2 votes
0 answers
100 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 ...
  • 773
2 votes
0 answers
252 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 ...
  • 129
2 votes
1 answer
167 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 ...
2 votes
0 answers
153 views

"Edit with existing Vim" - how does it work?

I have Vim 8.1.1 on Windows 7. I can click on the file with right mouse button, and there will be an option "Edit with Vim". Then, if I click another file, there will be two options: "Edit with Vim" ...
2 votes
0 answers
93 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 '...
  • 29.1k
2 votes
0 answers
92 views

How to properly use the MDI window pop-in (-P parameter)

I've never in 5+ years of vim usage and writing all kinds of custom plugins been able to properly figure out how to use the gvim -P windowname command line option. According to vim's own ...
  • 426
2 votes
0 answers
131 views

The $path used by ":!start cmd" is different from my system $path in windows

So I do a lot of python work in GVim on Windows 7, and I'm running into an annoying roadblock. This might be more of a Windows question, but it's happening in Vim, so ... I have this in my python.vim ...
2 votes
0 answers
428 views

gvim on windows - compiled ycm plugin now crashing on start

I installed the YouCompleteMe(YCM) plugin and compiled it using the provided instructions, one after the other for all options excluding rust. Below is a reproduction of the commands I ran, the reason ...
2 votes
0 answers
926 views

Gvim rendering artifacts?

I'm running Gvim 704 on Windows 7 Ultimate x64. Sometimes for some unapparent reason I get these blue dot artifacts: I'm very minimalist when it comes to plugins, I only use pathogen, ctrlp, ...
  • 281
1 vote
0 answers
25 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.
  • 161
1 vote
1 answer
81 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: ...
1 vote
0 answers
74 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 ...
  • 111
1 vote
0 answers
49 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-...
  • 1,174
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. ...
  • 123
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, ...
  • 13
1 vote
0 answers
201 views

Which vim configuration makes green line on the screen when I'm not looking?

It's only been a few days since I configured vim, installed WSL2, etc. Everything was alright, but today was different. I opened vim, and began coding. My code was kind of long so I couldn't see the ...
user avatar
1 vote
0 answers
2k views

Using xxd in Windows

I installed gvim82 to specifically use the xxd command in windows. I ran the :!xxd -i command followed by file_name.txt > header_file_name.h in the windows command prompt but nothing happens, not ...
  • 11
1 vote
0 answers
200 views

YouCompleteMe cannot find module

I am trying to get YCM working on Windows 10. Vim version: 8.1 64-bit GUI Since I'm using the regular gvim installer for Windows I have python support Compiler flags as follows: Compilation: cl -c /...
  • 11
1 vote
0 answers
79 views

Why does vim work if command file is double clicked, but not from DOS?

(Windows7-64bits-Vim8.1) I have a problem with getting the python in Vim to work. This problem is probably caused because I do not have admin access to the machine; I can't help that. In order to ...
1 vote
1 answer
306 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>"Syntax-Error Log.txt" While ...
  • 209
1 vote
0 answers
239 views

Vim Plugin Path Issue

I'm trying to get Vim all decked out with some fancy plugins on my work laptop but I am running into some issues. Using echo &rtp I can see that Vim will look in several directories for startup ...
1 vote
0 answers
58 views

Incorrect formatting of file when calling nvim inside NodeJS script

I am formatting elixir files .ex with the help of a contributed plug-in for nvim like this on Windows: cmd> nvim.exe -i NONE -n -E +"norm gg=G" -cwq c:/file.ex This works fine when the command is ...
  • 111
1 vote
0 answers
446 views

How do I get vim to autocomplete correctly for :! on Windows?

On Vim 7.3 on Windows, if I use Tab to autocomplete paths with nonstandard characters in many cases, it works fine. For example: :n 2016\ Posts\\feb\something.txt If I press Tab after '2' and 'f' ...
1 vote
0 answers
92 views

Unicode character does not show when entered using <C-q> with cp932

I am trying to get the unicode character '①' inserted in vim with the insert mode command but failed. <CTRL-Q>u2460 --> result:$` So I copied the unicode to vim and checked the hex value ...
1 vote
0 answers
570 views

Windows + Vim + Python2 + Python3 = Path nightmare

I am using Vim 8.0.0326 64-bit from the tuxproject with pathogen. I have 64-bit versions of Python installed in three locations: Python 2.7 (64) - C:\Python27 Python 3.6 (64) - C:\Python36 Conda with ...
  • 111
1 vote
0 answers
157 views

Is Vim's filename completion broken in Windows when using uppercase u umlaute (Ü)?

In a vim buffer, I want to insert the path to a file named blablabla\barbar-Überbar\bazbazbaz.txt which exists under the current working directory - and I am running gvim in a MS-Windows environment. ...
1 vote
0 answers
320 views

Vimrun.exe keeps opening and closing when statusline is updated

I am working on a plugin and as part of that plugin I am trying to update the statusline with setlocal statusline=%!GetMPCStatusline(). But this causes vimrun.exe to open and close very fast. This ...
0 votes
1 answer
10 views

Python not working on Windows

I have a couple of plugins which use Python and they work fine in Linux but on Windows I am having difficulty in getting Python recognised. " Language Providers if has('unix') let g:...
  • 151
0 votes
1 answer
16 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 ...
  • 151
0 votes
2 answers
36 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 ...
  • 101
0 votes
0 answers
65 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......
  • 101
0 votes
1 answer
56 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 ...
  • 221
0 votes
0 answers
35 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 -> ...
0 votes
0 answers
32 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 ...
  • 101
0 votes
0 answers
34 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,...
  • 145
0 votes
0 answers
39 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
77 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
77 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 --...
  • 525
0 votes
1 answer
116 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 ...