Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [microsoft-windows]

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

17
votes
3answers
9k views

Neovim on windows 10 - is it ready and how to set it up?

I am stuck on windows 10 and would like to give Neovim a shot. Is it ready, or should I just set up my vim configuration for the moment? I haven't really seen any videos or articles on Neovim under ...
16
votes
4answers
14k views

How can I install 64-bit Vim on Windows?

Vim's Downloads page says the 64-bit version is discontinued: Win64 The 32-bit version of Vim runs fine on 64-bit windows. There was a 64-bit binary, but it wasn't used much and maintenance ...
15
votes
4answers
5k 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 ...
12
votes
4answers
27k views

How can I get gVim on Windows to behave as on Linux?

I am a frequent user of the Vim editor on Linux and now I want to use it on Windows. I downloaded Vim for Windows, which happens to be gVim. Several features of Vim doesn't work in gVim 7.4 like ...
11
votes
1answer
585 views

How do I stop my window from moving when using vsplit?

When using :vsplit my gvim window jumps to a specific screen location. How do I stop this from happening? Same thing happens when the second to last split is closed. I'm using gvim on Windows.
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.
9
votes
2answers
3k views

How do I use Python plugins on Windows?

I have Windows 7 64-bit, with python 2.7.11 and python 3.5.1 (both 32-bit) installed, and I have compiled vim with python/dyn and python3/dyn, but I keep getting the following error: :py print "hello"...
9
votes
1answer
1k views

Not able to type Unicode with Gvim and VIM on Windows 7

I want to type in different languages using (g)Vim. But when I switch to another language using language bar (Devanagari or Hindi characters), and type anything, (g)vim displays ??? ??. What I tried:...
9
votes
1answer
426 views

Wrong encoding while calling shell

I was experimenting with a DOT diagram and tried to do the following: :! dot -Tpng -oFab.png % I got an error because my filename has a special character ("ó" in "Fabricación"): C:\windows\system32\...
8
votes
6answers
3k views

How do I save a read-only file in Vim for Windows?

I have looked for this a lot already and every answer is about Vim in Linux. Is there a way to save a read-only file right from Vim in Windows?
8
votes
2answers
2k 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....
8
votes
1answer
258 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 ...
7
votes
2answers
3k views

How to deal with string containing spaces in Vim script?

I have the following command in my vimrc: execute "set path+=".getcwd()."/**" It works well if current working directory is like /home/tamlok/my_work/. However, if the directory contains spaces, ...
7
votes
2answers
1k views

How to view javascript tags in vim using tagbar + jsctags + tern_for_vim + ctags_exuberant?

I'm writing javascript code using vim and I really like to have outline view for the current javascript file I'm editing. I find tagbar is the popular plugin for this purpose. And on its wiki, for ...
7
votes
1answer
636 views

vim 8.0 file explorer only allows specific locations

I'm running Vim 8.0 on a Windows 7 system and I'm having this issue whenever I open gvim (the one that runs in a window as opposed to running in cmd) the default path in :pwd is c:\users\"user". If I ...
7
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 ...
6
votes
2answers
2k views

Tag navigation using CTRL+] does not work with Non English keyboard on Windows

When using gVim on Windows 7 I cannot use ^] (CTRL+]) to jump to tags as described in the Vim documentation: <C-LeftMouse> *<C-LeftMouse>* *CTRL-]* CTRL-] Jump to ...
6
votes
1answer
67 views

How can I automate checking for new Vim releases on Windows?

Following up my earlier question (How can I install 64-bit Vim on Windows?), I'd like to automate updating Vim. On Linux, I let the package manager and its frontends take care of checking for updates ...
6
votes
1answer
976 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 ...
6
votes
2answers
951 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 ...
5
votes
3answers
580 views

Keeping personal vimrc and syntax files etc in source control?

I am trying to create a (git) repository for my vim files. Now, I am already struggling as to what directory I would store my files under. As far as I can see there is either %HOME% or %VIM%, right? ...
5
votes
2answers
4k views

Neovim setup on MS Windows

I'm trying to switch from Gvim to Neovim. Most tutorials are about Linux and not how to setup Neovim on MS Windows? Two problems: vimrc From the document it's %userprofile%\AppData\Local\nvim\init....
5
votes
1answer
1k views

Visual Differences between vim on virtualbox Ubuntu guest (through putty) OR gVim on Windows host

Ok, it's a curiosity more than a real question, I apologize in advance for long post: Usually I code with vim on a ubuntu headless, as a virtualbox guest on my stupid windows 7 host; I access linux ...
5
votes
1answer
5k views

How to get Python support on MS Windows?

I've installed the latest version of Vim to date (8.0) for Windows. But the version of Vim I've got does not have Python support. I've downloaded the .exe version directly from vim.org. echo has('...
5
votes
2answers
2k views

Can I use Vim with Visual Studio?

Is there any way I can use Vim with or Neovim to edit my project, and still be able to build it using Visual Studio? Note I am not talking about limited Vim emulators for Visual Studio but proper ...
5
votes
1answer
775 views

Adding emmet plugin to Vim in Windows

I am using Vim in my windows PC . Currently I am working with a web project and I want to use Vim as code editor. I tried to download and add the http://emmet.io/ plugin to Vim editor from this site ...
5
votes
2answers
810 views

Gvim how to open several files in different buffers from MS Windows explorer

On MS Windows using gVim, is it possible to select several files from the explorer and open them in the same instance of gVim in different buffers? At the moment if I select 3 different files on ...
5
votes
1answer
775 views

gvim incorrect font (or encoding) in menu

I use 32bit gvim 7.4 on Win7 64bit CZ. I replaced the gettext and iconv libraries according to the guide on the vim website. I wanted to use utf-8 and have setup the guifont, encoding and fileencoding ...
4
votes
3answers
1k views

How to resize vim on Windows 7?

I am wondering how to resize the gVim application on Windows 7. For example, I want to grab the corner of the window with my mouse and resize the application so it takes up more space on my screen. ...
4
votes
3answers
3k views

Where is my viminfo file on Windows?

I have gVim 7.4.608 installed on Windows 7 at work. I've looked in C:\ , C:\Users\<username>\AppData , C:\Program Files\vim , C:\Temp but there's no sign of it. It must exist somewhere, command ...
4
votes
1answer
1k views

Why do symbols look ugly in gvim?

I'm on Windows 7 with Vim 7.4, and Unicode symbols with the Hack font look awful. Am I missing a setting somewhere? Is there a way to improve this? For reference, this is gvim: and this is atom: I'...
4
votes
3answers
1k views

Can't change directory to network drive

Our company has recently changed to networked home directories. This includes setting enviroment variables. This has created the odd situation that gvim thinks my home directory is : :echo $HOME H:\...
4
votes
1answer
2k views

How do I make “Edit with Vim” open Vim instead of gVim on windows?

When installing Vim for Windows 10 64-bit, it also installed an "Edit with Vim" context menu option. Annoyingly, this opens the file in gVim. How do I change the "Edit with Vim" context menu option ...
4
votes
1answer
842 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 ...
4
votes
1answer
1k views

On Linux, vim would search #include files automatically for auto-completion but on Windows not

I use vim on Linux and Windows. Strangely, on Linux (Ubuntu), when I write C/C++ code, vim would search the included file for auto-completion (Ctrl-P), even if I don't add anything related in my ....
4
votes
1answer
132 views

Vim and gVim in Windows doesn't recognize Mongolian letters Өө and Үү

I'm trying to open and edit files with Mongolian text, written in Mongolian Cyrillic. In the cmd terminal and in powershell terminal if I choose Consolas font, everything is ok with Mongolian Cyrillic,...
4
votes
0answers
175 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 ...
3
votes
2answers
338 views

Poor syntax highlighting in vimwiki (command prompt)

Is there any way to change the syntax highlighting in vimwiki in windows. I could not properly see the line enclosed between [[some word]]. The same works well in Linux.
3
votes
1answer
2k views

What is the correct way to escape UNC paths?

Let's say there is a file \\server-42\tmp\dir\test.txt. When my plugin tries to execute this command via system() it triggers an error: cd "\\server-42\tmp\dir" && git ls-files --error-...
3
votes
1answer
421 views

Why does setting runtimepath do nothing?

I'm trying to adjust my vimrc to be portable and also run under Gvim 8 on Windows 10. I use Vundle as my package manager and it works perfectly on my Ubuntu machine. However, on Windows, it won't load....
3
votes
1answer
90 views

Parsing a valid normal-mode command (possibly with regex)? (for Vim-like Word add-in)

I am writing a VBA routine so I can use normal-mode commands in Microsoft Word. (Yes, I am! Edit And here you go!) I am only going to support the d, c, and y operators initially, and only char/word/...
3
votes
2answers
120 views

Why can't I paste commands into vi?

I've been using vi for 40 years. A week ago I upgraded; Disaster struck! The upgrade was to VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar 4 2018 23:38:28) I run this on xterm under Cygwin (...
3
votes
1answer
447 views

Using the same plugin folders for gvim and with vim in cygwin

I have a cygwin shell in my windows computer and it has a Vim installation of its own in it. And, so the plugins I have for Gvim are not available for the Cygwin vim. I tried symlinking the plugins ...
3
votes
1answer
74 views

Can the vim program description be modified? [closed]

I am running Windows 7 Professional. I have used the context menu for each of several file types to specify vim in the "open with" field. There are times I want to open the selected file with vim ...
3
votes
1answer
4k views

How to resolve “requires Vim compiled with Python 2.x support” when launching Vim?

I have Vim 7.4 installed on Windows 10 as part of a Mingw64 installation. I installed the YouCompleteMe plugin on it through Vundle, then ran the install.py, which completed successfully. Now, every ...
3
votes
0answers
26 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
53 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
252 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....
3
votes
0answers
160 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 ...
3
votes
0answers
78 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 ...