Questions tagged [microsoft-windows]

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

49 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
36 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
0answers
650 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....
4
votes
0answers
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
0answers
681 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
0answers
75 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. ...
3
votes
0answers
125 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
0answers
306 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
0answers
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> ...
3
votes
0answers
176 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 ...
2
votes
0answers
72 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 ...
2
votes
0answers
84 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
0answers
749 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....
2
votes
0answers
79 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 ...
2
votes
0answers
125 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
0answers
409 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
0answers
837 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, ...
1
vote
0answers
18 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 ...
1
vote
1answer
61 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 ...
1
vote
0answers
36 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. ...
1
vote
0answers
28 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, ...
1
vote
0answers
64 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 ...
1
vote
0answers
747 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 ...
1
vote
0answers
135 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 /...
1
vote
0answers
70 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
1answer
238 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 ...
1
vote
0answers
79 views

Does Windows GUI Vim perform font substitution for glyphs unavailable in current font?

MacVim specifically (if obliquely) mentions font substitution, and I've found evidence online that GTK2 gVim does too. But does Windows gvim? N.B. I'm already aware of the 'guifontwide' setting.
1
vote
0answers
183 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
0answers
49 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 ...
1
vote
0answers
386 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
0answers
82 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
0answers
539 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 ...
1
vote
0answers
137 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
0answers
282 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
0answers
84 views

Suppress warning pop-up

I'm on Windows using gVim, Vim version: 8.2.2003. I get a warning pop-up with the following error message: Some language features are not available. To access all features, enable [strictTemplates](...
0
votes
0answers
23 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-...
0
votes
0answers
92 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 "...
0
votes
1answer
33 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 ...
0
votes
1answer
90 views

What's the best way to configure vim to unzip files with 7zip

In an answer to this particular question it said that it's enough to have unzip installed and available to make vim to unzip files on the fly. However what wonders me is there any way to configure vim ...
0
votes
0answers
39 views

Much slower startup on Windows than WSL2

I finally got around to refreshing my vim setup and adding plugins and such. As a result, my startup time has gotten much worse. What's strange though is that it only seems to be an issue on Windows. ...
0
votes
0answers
135 views

Change cursor shape in Vim PowerShell

I have looked through the web but I have found no answer to this. https://vim.fandom.com/wiki/Change_cursor_shape_in_different_modes The above website mentions ways to do it in terminals but not when ...
0
votes
0answers
21 views

gVim on Windows not distinguishing Numpad Enter

Using gVim on Windows, I'm trying to add a mapping to <kEnter>, but it seems that it's not being treated seperately from <CR>. New to Windows, so I thought this may just be an OS thing, ...
0
votes
0answers
104 views

Remapping the menu key in Neovim-Qt

I would like to map the menu key (aka application key) on my keyboard to various behaviors in Vim, but in Neovim-Qt on Windows 7, Vim does not recognize presses of the menu button. For example, when I ...
0
votes
0answers
91 views

Vim syntax highlighting becomes crazy

Some overview and history. Environment: OS: Windows 8.1 Emulator: cygwin (mintty) Terminal: xterm-256 Vim: v8.0 (Cygwin edition) Vim setup: Plugin manager: VimPlug Enabled plugins: Plug 'scrooloose/...
0
votes
0answers
38 views

Advantages and disadvantages of using 64-bit build over 32-bit build

For MS-Windows, VIM releases 32-bit executable as well as 64-bit executable. The VIM download page mentions that the 64-bit version uses a lot more memory, but is compatible with 64 bit plugins. Are ...
0
votes
0answers
38 views

Run project specific _vimrc in windows?

I'm attempted to duplicate this functionality in a windows environment running gvim 8.1 but it doesn't appear to pick up my changes. I've updated my $VIMRC\_vimrc with set exrc set secure and my ...
0
votes
0answers
26 views

error output when using commands proxied via WSL (asyncrun plugin)

I have wsl - ubuntu installed under Windows 10. Some ubuntu's commands are proxied to use in cmd by create .bat files and add them to PATH environment of windows10, pattern like following: @echo off ...
0
votes
0answers
1k views

Change runtimepath of Gvim on Windows 10

This's kind of odd question but I can't change the runtimepath of gvim to comply the same manner like under linux (plugins put under .vim) I tried to append .vim at the begin of runtimepath like: set ...
0
votes
0answers
68 views

Strange glyph when moving commandline cursor

I recently tried vim for the (still in-dev!) Bash for Ubuntu on Windows. I noticed this odd glyph appearing on the commandline in vim - but only when moving across it. It flashes for one screen ...
-1
votes
1answer
81 views

Black Borders in Neovim when using Windows Terminal

Why are these black borders generated when I open Neovim in Windows Terminal?