Questions tagged [microsoft-windows]

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

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

How to get put the result of a shell command in a variable?

I would like to capture the result of a shell command into a vim variable inside of my vimrc file. I tried using let myvar = system("DIR") however it seems to crash vim when I put it in my vimrc file....
2
votes
1answer
27 views

Unable to set WSL as the shell on gVim

I followed the instructions given in this answer: https://vi.stackexchange.com/a/16436/25843, and I've set my shell to point to wsl.exe like this (wsl.exe path seems to be different on my machine ...
1
vote
2answers
261 views

How to start gvim from command line with predefine pasting from clipboard

I know gvim -c [command] samaple.txt might run command predefined in command body. How to paste text from windows clipboard at the end of sample.txt file?
2
votes
1answer
54 views

Reduce size of undo file

I had a very large (14 digit) decimal number in my (Windows) clipboard. I had vim open in normal mode on the command line at the time. Accidentally, I pressed some key/mouse combination that caused ...
0
votes
0answers
27 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
1answer
37 views

Numpad behavior incorrect with vim.exe - Windows

On Windows with an installation of gvim 8.1, Numpad behavior is different between the GUI and the console. The GUI (gvim.exe) has a TERM of builtin_gui and the keypad (with Numlock On) works properly....
1
vote
1answer
85 views

Gvim 8.1 on Windows 10 won't source $HOME\_vimrc

I have a $HOME\_vimrc present, but it doesn't show up in the output of :scriptnames. And when I run gvim -V, it reports: could not source "$HOME\_vimrc" The only thing in my $HOME\_vimrc is the ...
0
votes
0answers
18 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 /...
4
votes
1answer
210 views

Vundle won't install plugins due to an error about AppData/Local/Temp

I am on Windows 10. I just installed Vundle and now I am trying to run the PluginInstall command. However, I am getting errors saying it can't open a file in AppData/Local/Temp. This does occur on all ...
1
vote
2answers
1k views

Installing gvim on Windows Subsystem for Linux

I'm trying to install gvim on WSL (under windows 10) and use MobaXterm as my X server. Bash informed me that: Command 'gvim' not found, but can be installed with: sudo apt install vim Which I ...
1
vote
2answers
730 views

How to set vim as the default Text editor?

I'm trying to set gVim to be the default text editor on Windows but it won't work. It works with notepad++, editor... but not with Vim. Any ideas how to fix it? Screenshot: http://prntscr.com/lm069a ...
0
votes
1answer
40 views

Quickfix and building a CMake project on windows

I'm trying to get to the point where I can build a CMake project in neovim and have it output a quickfix list that I can quickly step through. In Visual Studio, I would typically hit CTRL+b for build,...
1
vote
1answer
30 views

Cross-platform way to execute command with clean environment?

A plugin I use executes: silent execute '%!cmd' which fails because of a particular environment variable I have set that deliberately modifies the behaviour of cmd. I can fix it with: silent ...
0
votes
0answers
35 views

Running vim in Windows CMD messes with text wrapping when resizing the window

Normally, resizing CMD works normally for me, where the directory prompt (is that what it's called?) stays on the left side of the screen no matter the size of the terminal. However, if I open vim (or ...
0
votes
3answers
1k 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. ...
2
votes
1answer
72 views

How do I pass a full filepath to a function in a Vim plug-in?

I have an exe program that checks for certain errors in a text file. I want to create a shortcut (like \+M) to run that exe file against the text file. My exe file's path is C:\Users\xyz\Documents\...
1
vote
0answers
41 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. ...
9
votes
1answer
1k views

How to check whether Vim is built as a 32-bit or 64-bit application?

How do I check if Vim is compiled as 64-bit or 32-bit from within vimscript? Specifically on Windows.
5
votes
1answer
508 views

How do I remap “å” to type “å”?

I recently came over some use for letters like æ, ø, and å. For context, these are available on my keyboard, and work fine in other programs. It's also a Norwegian keyboard if that's relevant. With ...
3
votes
1answer
87 views

Syntax-highlighting is getting screwed when loading long markdown files on Windows

Note: this may be a Windows-only problem. The symptom has been reproduced on multiple Windows 10 machines. I find my syntax-highlighting for Markdown files (ending in .md) will fail to rander when ...
8
votes
1answer
308 views

Dealing with case insensitive filenames on Windows

I'm using the latest vim/gvim (8.0.118), but have noticed this problem in the past, with other versions. I created a file named fizzbuzz.java (outside of gvim), and opened it in a new tab in gvim on ...
1
vote
1answer
175 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
1answer
146 views

Powerline font not working with airline in (g)vim on Windows 10

I'm trying to set up patched fonts from powerline/fonts with airline in gvim under Windows 10 64 bit. As you can see from the screenshot here: the characters from the font do show up, but the airline ...
1
vote
1answer
337 views

My gVim (8.1, Win10) does NOT invoke $VIM\_vimrc during initialization

My $VIM\_vimrc is as follows: source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin My $HOME\_vimrc does not have this option. I was led to believe that Vim first invokes ...
2
votes
1answer
46 views

Vim 8.1 on Windows 10 Won't Detect Packages in $HOME

Take a plugin like Flake8. It instructs users to install using Vim 8's package manager by: mkdir -p ~/.vim/pack/flake8/start/ cd ~/.vim/pack/flake8/start/ git clone https://github.com/nvie/vim-flake8....
1
vote
1answer
591 views

vi background color wrong on Windows 10 1903 WSL Terminal

After upgrading to Windows 10 1903 (18362.175), in Window Subsystem for Linux (WSL) Ubuntu 18.04, the background color is always set to black when scrolling backward in vi, vim, man and maybe some ...
1
vote
1answer
96 views

CVE-2019-12735 question

Does anyone know if the Windows versions (pre 8.1.1365) of VIM (https://www.vim.org/download.php#pc) are vulnerable, per CVE-2019-12735? Everything I have read always mentions LINUX, and many LINUX ...
2
votes
1answer
49 views

Why does vim call powershell surrounded by two single quotes?

I'm attempting to use powershell from gvim, and when I do...I set: :set shellcmdflag=-NoProfile\ -NoLogo\ -ExecutionPolicy\ RemoteSigned\ -windowStyle\ Normal\ -Command :set shell='C:\\windows\\...
0
votes
0answers
31 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 ...
3
votes
1answer
87 views

Is there a source for pre-built patched Win32/Win64 vims?

Turns out my problem with this answer is that I need patch 7.4.143. I can't find any download on vim.org for a Windows patched-vim installer. Is there an official distribution of patched vim 7.4 for ...
3
votes
1answer
236 views

How to correctly map <tab> for <Plug>Functions() on Windows?

I am using gVim on Windows, and have only recently run into a very problematic situation: my Tab key stops working in insert mode! Pressing the Tab key does not give any output. In order to use the ...
0
votes
2answers
433 views

Make vim support the Windows clipboard

I've found a lot of information online about this for Linux-Vim but not for the Windows-Vim (not gvim). Whenever I try to copy and paste something in Vim (using y and p), the copies I make do not ...
1
vote
1answer
41 views

How to source vim-scripts on Windows?

In (g)vim on Windows I can use :source \Program\ Files\ (x86)\Vim\vim81\msvim.vim to source the script for the Windows settings. Vim suggested the syntax with leading backslash when I found it in some ...
10
votes
3answers
3k 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....
-1
votes
1answer
45 views

Whitespace Tabs Show Differently in gVim on Windows/Linux versus MacVim on Mac OS

I am having difficulty getting MacVim to behave and look the same as gVim on Windows or Linux. Here's an example: gVim on Windows: MacVim on Mac OS: These are viewing precisely the same file. The ...
1
vote
1answer
1k views

Getting Python support for gVim 8.1 (Windows 10)

As an extension (follow-up question) of the answer here: If you type :version, you should see +python/dyn and +python3/dyn. On Windows, this means that Vim is compiled to dynamically load the ...
0
votes
0answers
35 views

Vimwiki - Enter key not working on windows 10

Vimwiki version: 2.4.1 Vim: 8.1 I am on Windows 10. Enter is not working, it just moves the cursor to line below. Is there some setting that need to be enabled to make enter work on Windows ?
0
votes
1answer
37 views

Windows context menu “open with vim” symlink error

New install of Vim 8.1.1 on Windows 10 64bit. Also running cygwin. From a Windows Explorer r-click context menu for a file, the "Edit with Vim" produces a cmd.exe window with: C:\WINDOWS\system32\...
1
vote
0answers
25 views

Different versions of vimrc being read [duplicate]

I have an absurd problem. Honestly, I have a hard time figuring out whether this belongs here or a Windows forum. Using Vim on Win10, I've changed my C:\Program Files (x86)\Vim\_vimrc from the awful ...
0
votes
1answer
54 views

On Windows some symbols are not displayed

I use 'DejaVu Sans Mono' as gui font both on Windows (7 and 10) and Linux. However, on Windows some characters are not displayed correctly (while many other Unicode characters are displayed normally). ...
1
vote
3answers
234 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. ...
2
votes
2answers
218 views

Vim Statusline colors not appearing

I want my vim statusline to have some color and I can't figure out why it does not with this code: set laststatus=2 set statusline+=%1*\ %f\ %* set statusline+=%2*\ %<%F%* set statusline+=%2*%m%* ...
1
vote
1answer
29 views

Why does current/shell directory change depending whether drive-letter is used in filename?

Using VIM (v6.3) from a command-prompt (i.e. not gVIM) I'm getting different behaviour for the :shell command depending on whether I specify a drive-letter when editing a file or not. Without Driver ...
9
votes
2answers
2k views

Change vimtutor language

My vimtutor is in portuguese. I don't know why, because my Windows OS is in english, so as everything else. I don't remember to have chosen "portuguese" anywhere in the vim installing process. How do ...
3
votes
0answers
56 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 ...
0
votes
0answers
28 views

How to stop Vim changing color of the empty space on its own?

I didn't know what is the best title for this question. This problem is annoying me so much. I'm on Windows 7 and using nvim-qt. When I search for a word in the project or for example open NERDTree ...
1
vote
0answers
40 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 ...
0
votes
3answers
538 views

Vim 8 on Windows doesn't see plugins directory

I am using Vim 8.1 on Windows 10 and with a default package manager Vim doesn't see plugins in C:\Program Files (x86)\Vim\vimfiles\pack directory. Did I put in into incorrect place? EDIT: It is the ...
1
vote
1answer
88 views

<Alt> to enter normal mode on Windows

I'm new to vim, and I find using <Esc> to enter normal mode to be slow. I'm on Windows. I seldom use the <Alt> keys (left and right) when I'm editing text. It should be convenient to use &...
1
vote
2answers
2k views

Fatal Python error: Py_Initialize: unable to load the file system codec ImportError: No module named 'encodings'

I am new to vim. As much as I love it, there seem to be a lot of bugs or errors every time I try doing something. I am unable to run the plugin "browserlink.vim" (https://github.com/jaxbot/...