5
votes
1answer
33 views

How can I use vim to view git diffs on Windows?

I want to use vim to view the output of git diff. I am running Windows 8 and I have vim 7.4 installed. I have, for convenience, created an environment variable VIMDIR set to Vim's install directory ...
0
votes
1answer
9 views

Setting up Slimv on Windows + Vim / gVim

I intend to learn Common Lisp, and the book I plan to follow has suggested that GNU Emacs in conjunction with SLIME be used. However, I am not particularly fond of the way Emacs runs on Windows, and ...
0
votes
1answer
34 views

Vim line numbers in insert mode

For some reason, Vim (gVim for Windows) turns off the line numbers when I enter insert mode. This can be rather jarring, because it shifts all the code to the right or left when I leave or enter ...
0
votes
1answer
21 views

Get hotkey to type a random number as if I typed it on a keyboard on Windows?

In many cases I need to not just generate a list of random integers (which is easy), but to type random integers into various software. For example, to skip a random number of lines (1 to 100) in ...
0
votes
1answer
15 views

Disable scrolling when launching an app (Vim) inside Windows console window

In Windows, when I'm using the command prompt and launch Vim, I have a habit of trying to scroll through files using the mouse-wheel (which of course works in gVim but not inside the terminal). Is ...
0
votes
1answer
59 views

Adding/displaying special characters in Vim

I currently work on a project where I need to write the Unicode characters ɛ and ħ, which I just added to my keyboard. It works great almost everywhere, even in the command prompt, except for Vim ...
0
votes
0answers
49 views

“Open with… Vim” does not load _vimrc settings

I use Vim (gVim to be precise) to write and edit files. When executing the editor directly, everything works fine. But if I open a file using the "Open with..." command on Windows, the _vimrc settings ...
0
votes
1answer
47 views

Windows Vim symlink config file persistent error

I'm trying to configure the native Windows Vim/gVim and the Cygwin Vim/gVim to behave nicely together. To this end, I created symlinks, ~/.vimrc and C:\Users\<myusername>\_vimrc, that both point ...
0
votes
1answer
282 views

Can't get vundle or neobundle to work on GVim on Windows 7 64bit

Can't get these add-ons (vundle or neobundle) to work on my Windows 7 machine. Everytime I try to install plugins I'm getting the following error messages: Error detected while processing function ...
1
vote
2answers
48 views

Map Ctrl-Shift-V to an action in vi

I want to be able to paste from the clipboard on gVim on Windows using Ctrl-Shift-V, just like in Terminator. However, if I put this on my .vimrc imap <C-S-V> "+gP The shortcut works ...
1
vote
1answer
73 views

windows env variables not resolving

I have the following env variables: VIM_HOME: %ProgramFiles(x86)%\Vim\vim74 CMD: %USERPROFILE%\cmd PATH: ...%CMD%;%VIM_HOME%;... C:\Users\me\cmd\vim.bat @echo off start vim.exe %* Prompt: > ...
1
vote
1answer
33 views

In gvim on windows C-] does not work (but C left mouse works)

For some reason the follow tag (ctrl+]) in gvim on windows does not work for me, I know that the tags file is loaded since the ctrl+left mouse button works as intended. There is nothing on the help ...
1
vote
1answer
213 views

Running vim script exits batch file? (Windows .BAT/.CMD)

Trying to run a vim script as part of a batch file with vim -u NONE -S dothis.vim but what is puzzling is that the batch file exits after this line instead of continuing with the next statement. ...
1
vote
2answers
78 views

Vifm in Windows 7 x64 filetype default for OS

I was looking around for a file manager that has Vim key bindings and worked with Windows and that resulted in me discovering about "Vifm" Problem is (besides the fact it can't be ...
0
votes
2answers
43 views

Using two python paths for vim in Windows

I wanted to simply :!python % in order to run the file im using in vim, but the obvious conflict is that there's no way for me to distinguish python2 and python3 since including both to $PATH$ would ...
0
votes
1answer
60 views

encoding that is compatible with both latin1 and uft-8?

I use vim to edit files and I can make it display Korean only if I set the "Current language for non-Unicode program" to "Korean". I can accept that thtat is the way it supposed to be. But then if I ...
0
votes
1answer
37 views

Vim/Gvim default file type on Windows

On windows 7, when I edit mark down files (.mdwn) and try to open tab (:tabnew but via the menu), the default file type is set to HTML (*.html or *.htm). There's a drop down to set it to all files ...
0
votes
1answer
35 views

How do I enable mouse only for a particular split screen in VIM?

I'm using NERDTree with mintty and cygwin on Windows. Is there a way to enable mouse only for the NERDTree split screen?
0
votes
1answer
63 views

How to use sudo tee in GVIM for Windows

Can I use something like :w !sudo tee % in GVIM for Windows? Is there any analogue? Or can I disable UAC for one program only and always run it as administrator?
2
votes
1answer
50 views

gVim for Windows: How to properly escape filenames that will be used with !start?

I have this piece of code in my .vimrc in order to make files of different types be opened in different gVim instances. function GetSvrName(ext) if !exists('s:ext2srv') let s:ext2srv = [ ...
2
votes
1answer
108 views

reuse an already established connection with win32 gvim

How can I reuse an ssh connection on windows? Ive been using these settings in my _vimrc for sftp and noticed that each time I browse or try to edit a file with netrw, a new connection is created ...
1
vote
2answers
838 views

Starting vim from Windows PowerShell

This isn't necessarily a problem, I'm more curious why this behavior occurs. When attempting to launch vim from powershell, I'm greeted with the Open with window: PS C:\> vim If I specify: ...
1
vote
1answer
323 views

Changing drive in NERDTree (gVim, Windows)

If NERDTree starts up somewhere in the C: drive, once I reach C:\ itself (which NERDTree considers as "/"), I get the message "already at top dir" if I try to click on the double dot .. NERDTree's ...
0
votes
2answers
107 views

'show more fonts' option on gVim

In the Select Font... dialog of gVim, there's a link at the lower left that says Show more fonts. When I click it, I'm simply taken to the Fonts folder in Control Panel. How can I use that to set a ...
2
votes
1answer
78 views

how to open cmd from gvim without waiting the cmd window to be closed

In gvim I can open cmd typying :!cmd, but gvim keeps waiting for the cmd window to be closed. Is there a way to tell gvim NOT to wait?
0
votes
2answers
105 views

asdfghjkl; plugin, still alive?

i really love the concept of vimperator and i found this plugin pretty awesome: asdghfkl plugin. It's supposed to remap the numbers to letters for the Hint prompt. Thing is I tested it and it's not ...
2
votes
1answer
91 views

gvim in windows, need to preserve or correct path casing (e.g., c:\windows vs. C:\Windows)

I use gvim in a windows environment and have ClearCase for source control. My problem is that windows paths aren't case-sensitive, however, ClearCase enforces case sensitivity. So, when editing a ...
1
vote
1answer
57 views

How to make vim recover files from command line?

If it were linux, I'd do it like this: echo "w DST_FILE | q" | vim -Esu NONE -r SWP_FILE I'm trying to do the same under windows with git's bash, but with no result. It hangs and doesn't create ...
1
vote
1answer
109 views

gvim view script output in realtime in quickfix window

I'm using gvim in a windows environment and have some custom scripts that I use to build with. Currently, all of my build output redirected to a new tab, but I have to wait for my build to finish ...
0
votes
0answers
34 views

vim not finding the end of the sql statement

In gvim if I put the cursor (normal mode) in the word SELECT and then hit \se then it runs ok: SELECT GETDATE(); If I do exactly the same but for a query over two lines then it errors. SELECT ...
1
vote
1answer
136 views

How to edit UTF-8 files in vim on windows

I'm trying to edit UTF-8 text files using vim (7.3) on windows (prompt/powershell). My _vimrc file is pretty simple: set encoding=latin-1 set fileencoding=utf-8 The problem is, when editing a ...
0
votes
0answers
120 views

SQL Completion Tutorial on vim

I'm attempting(!) to start the sql completion tutorial on vim: I've created the empty file tutorial.sql I enter insert mode ok (press i). Then I need to hit <C-C>s which I assume is ...
0
votes
1answer
138 views

NERDTreeToggle opens in Windows/system32

I've added the following useful settign to _vimrc: map <F2> :NERDTreeToggle<CR> If I open gvim and then press F2 NERDTree will open but in the directory Windows/system32 which takes a ...
0
votes
1answer
149 views

python related plugins give errors in vim

So here's an example of a vim plugin having python issues: Error detected while processing function UltiSnipsEdit: line 6: Traceback (most recent call last): File "<string>", line 1, in ...
-1
votes
2answers
78 views

Is vim better installed in C:\Program files\

I've installed gVim and the install has gone into here: C:\Program Files (x86)\Vim Would there have been advantages to installing it in the following location?: C:\Users\myName\Vim
0
votes
1answer
35 views

Vim With Windows+Symlinks and a sandbox directory

I have a large project, and I have to work in and switch between a few directories often. My solution was to symlink all the files that I want to get to quickly into a sandbox directory. I just ...
1
vote
1answer
300 views

Solved — Hide dot and dotdot (“./”, “../”) directories in NERDTree gVim

This is in gVim on Windows. NERDTree is registering ../ and ./ links in every directory. By the -> I thought perhaps they were shortcuts/symlinks that got added to all my directories, however in ...
1
vote
2answers
284 views

Git for Windows: Run vim in background without ampersand (&)

On my Windows machine, running gVim appears to tie up the git for windows shell, whereas if I run from the command prompt, this is not the case. How might I be able to run gVim (or any other program, ...
0
votes
1answer
83 views

Vim; Executing another application by :MyCommand

I want to execute "go install" in current directory (where currently open document resides) with a command (Like :GoInstall). How can I do that? Note: I want to see the output of that command too. ...
0
votes
1answer
222 views

Binding caps lock key to another unique key

I've been mapping my caps lock key on windows machines to various keys (I have tried both Backspace, which I have never gotten used to due to deeply ingrained habit, and Esc, which will take time to ...
1
vote
1answer
259 views

Windows 7: “Open with” context menu not always available when I want it

I recently formatted my hard drive, and right now there's not much on here except a clean Windows 7 install and the most recent version of Vim for Windows. I told Vim to install its own context menu, ...
2
votes
1answer
119 views

How to force gvim to display All Files (*.*) in Edit File dialog box

I am using gvim on Windows 7. My question relates to the Edit File dialog box that appears when File->Open is selected from the gvim menu bar. At the bottom right of the Edit File dialog box is a ...
0
votes
2answers
869 views

How do I compile gVim.exe as a 64 bit executable? (Windows 8)

Very straight-forward question. I have downloaded mingw32 and the Vim source code and I have edited Make_mind.mak to use the correct Python version and location. I'm located in the src directory and I ...
3
votes
5answers
350 views

How can I view a .eml file from command line in Windows Vista?

Ok, so my parent's computer crashed (horribly - corruptedRegistry) and I'm trying to access one of their e-mail files that is saved locally on the hard drive. I can't launch Windows itself so right ...
0
votes
2answers
566 views

E138: can't write to viminfo file C:\Windows\system32\config\systemprofile\_viminfo!

E138: can't write to viminfo file C:\Windows\system32\config\systemprofile_viminfo! but I don't find the file from C:\Windows\system32\config\systemprofile_viminfo! It also can't find .viminf*.tmp ...
-1
votes
3answers
59 views

Save file in Windows protected folder

I'm using gVim and everytime I need to change my _vimrc file. But it is located in program files, so i can't save my edits there, because of system protection. So i copy the file to Desktop, change ...
2
votes
1answer
165 views

Opening PHP files in vim gives me error: E108: No such variable: “b:current_syntax”

I'm running cygwin on my Windows box, and everytime I open up a php file using vim, i get this error: sendgrid-test.php" 7L, 46C Error detected while processing /usr/share/vim/syntax/php.vim: line ...
1
vote
1answer
75 views

How do I edit files in the console when connecting to windows 7 via ssh?

I am using tunnelier client and server to connect to a windows machine. I can get in and have access to all of the files on the computer. I have vim installed on that windows machine, but I can't seem ...
1
vote
2answers
822 views

copying from VIM in a screen in putty under windows

Anyway i can get text from Vim in the windows clipboard? my sessions are usually via PuTTY, and almost always in a gnu screen if using :set mouse=v i can highlight some lines and they appear in ...
1
vote
2answers
294 views

Vim shows ^M symbols and they aren't disappearing

I use Vim 7.3 under Windows 7 and have experienced a problem. Symbols ^M are not disappearing despite any my efforts, :e ++ff=dos does not help. Any suggestions?