All Questions

Tagged with
Filter by
Sorted by
Tagged with
242 votes
2 answers
83k views

How can I show hidden files (starting with period) in NERDTree?

How can I make NERDTree show files that begin with an . (period)? I have a file named .hgignore in a project directory. If I browse to that directory using NERDTree, the file is not displayed within ...
James Fassett's user avatar
197 votes
10 answers
219k views

set gvim font in .vimrc file

I am using gVim 7.2 on Windows 7. I can set the gui font as Consolas 10 (font size) from the menu. I am trying to set this in .vimrc file like below: set guifont=Consolas\ 10 But it doesn't work. ...
Yongwei Xing's user avatar
  • 13.2k
153 votes
12 answers
99k views

VIM Ctrl-V Conflict with Windows Paste

I am using VIM in Windows. The problem is that I want to use CtrlV as a visual mode. However, this key has conflict with Windows paste. How can I reset this key back to VIM visual mode instead of ...
David.Chu.ca's user avatar
69 votes
6 answers
39k views

In Vim, what is the simplest way to join all lines in a file into a single line?

I want to join all lines in a file into a single line. What is the simplest way of doing this? I've had poor luck trying to use substitution (\r\n or \n doesn't seem to get picked up correctly in ...
Jordan Parmer's user avatar
45 votes
5 answers
86k views

How do you run Vim in Windows?

I just installed gVim, and tried using the usual "vim myfile.java" technique that usually works for linux to open up a file and edit it. But unfortunately, this doesn't seem to work. I've also tried "...
Mr Prolog's user avatar
  • 531
41 votes
8 answers
23k views

How do I hide the eol doc chars ^M in VIM

In gvim on windows if I have text with CRLF eol then the text will display ^M at the end of each line. How do I 'hide' that special char from display? The :set nolist command """ does ...
marekj's user avatar
  • 1,235
32 votes
9 answers
24k views

Vim: Change start up directory?

When I start GVim and start writing my little program I'd like to save the file to the Desktop but it seems that Vim is starting the command line in: C:\Windows\System32 How would I go about changing ...
Nope's user avatar
  • 35.4k
32 votes
5 answers
15k views

Why does < C-a> (CTRL+A) not work under gvim on windows?

I'm trying to use the < C-a> (CTRL+A) shorcut under vim to increment a variable under the cursor. This works fine under vim running on Linux. However when I try to do this in gvim under windows it "...
snth's user avatar
  • 5,449
27 votes
8 answers
23k views

Vim: \n vs. \r

I haven't used vim in a Unix system in a while, but as I recall there was no \r, it was always \n. I'm using gVim under windows and when I search for new line characters I use \n. Searching for \r ...
Whaledawg's user avatar
  • 4,224
27 votes
7 answers
19k views

Why is so complicated to remap Esc to CAPS LOCK in Vim?

I saw the vim wiki tips and it says that in order to remap Esc to CAPS LOCK you have to edit the following windows code: REGEDIT4 [HKEY_CURRENT_USER\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,...
wyc's user avatar
  • 54.4k
25 votes
2 answers
78k views

Any VI like editor under windows? [closed]

I am wondering whether there is a vi like editor under windows command line?
Adam Lee's user avatar
  • 25.3k
21 votes
5 answers
14k views

babun: copy/paste from windows clipboard into vim?

right-clicking while at the prompt dumps the contents of the clipboard into the shell, but in vim it just switches to VISUAL mode and does nothing. How do I workaround this? https://github.com/babun/...
ihadanny's user avatar
  • 4,407
21 votes
2 answers
7k views

Vim: Encoding (Unicode) in Terminal under Windows

I don't know why, but this topic seems to be badly documented and is covered with controversies as nobody knows the real answer (except for maybe Mr. Moolenaar, who rarely answers anyway). So ...
Alexander Shukaev's user avatar
21 votes
2 answers
21k views

Vim error E510: Can't make backup file (add ! to override)

I am using Vim on Windows and decided to create a separate directory for all my backup files created by vim. I am using Vim from my command prompt and not using the vim GUI(gVim). I looked at this ...
RanRag's user avatar
  • 49k
20 votes
3 answers
20k views

Installing NERDTree on Windows

I'm trying to install NERDTree (the Vim plugin) on Windows 7. I created a .vim directory on my user folder (C:/Users/Username) and extracted the plugin there. I've run :helptags ~.vim\doc and :...
Vitor Py's user avatar
  • 5,155
20 votes
7 answers
21k views

How can I get gVim (Windows) to use "home\.vim" for my plugins?

I have a Desktop running Windows 7, and a Macbook Pro running Mountain Lion. I use gVim and MacVim respectively. I like to keep my plugins and settings synced between the machine, so I store them in ...
Austin R's user avatar
  • 785
20 votes
3 answers
17k views

Keyboard-only column block selection in GVim Win32, or why does Ctrl-Q not emulate Ctrl-V when mswin.vim is included?

I want to be able to select columnar blocks using only the keyboard when I use GVim on Windows, but I do not seem to be able to do so when using gvim (7.2) on Windows XP. Edit: For convenience, it is ...
kbulgrien's user avatar
  • 4,442
20 votes
3 answers
14k views

How to make gvim on Windows behave exactly like linux console vim?

I have used Vim extensively on linux console, I am used to it's keyboard shortcuts, like Ctrl+V for vertical selection, and many others. I have installed gVim for Windows on my computer at work, and ...
SWilk's user avatar
  • 3,396
17 votes
5 answers
13k views

How to indent a selection in gVim (Win32)

I'd like to indent a block of text. I am able to do this in the Linux build of gVim. I do this in the state of gVim where I'm not in the insert or visual mode. The bar at the bottom is blank on the ...
Fredrick's user avatar
  • 1,270
16 votes
3 answers
12k views

How do I paste from PuTTY into Vim 8.0?

Scenario From a Windows 10 Anniversary Update client ... Open a web browser, copy / paste some text from a website (eg. GitHub) Use PuTTY 0.67 to SSH to a Linux VM (eg. Ubuntu 16 Xenial Xerus) Open ...
user avatar
16 votes
3 answers
33k views

Vim as the default editor

I'm on Windows XP and I just installed GVim 7.3. How do I make the default editor? How can I make it run using the command prompt e.g. c:\Windows>gvim boot.ini open this file in gvim. Thanks a ...
Prakhar's user avatar
  • 3,516
15 votes
2 answers
6k views

Explanation of default vimrc file for windows version of vim

I've just downloaded vim7.4 for windows and I'll like to know what the default vimrc file that comes with it is doing. Just a brief explanation of each item would be nice to know. Here it is. set ...
pickle323's user avatar
  • 653
14 votes
3 answers
12k views

What is this editor opened by "git commit --amend" in Windows 10 cmd and how do I use it?

Windows 10 cmd opens up this editor by default when I try to edit a GIT commit message. Can you please tell me what that is and how I can use it? Thanks.
Aswin Koliyot's user avatar
14 votes
1 answer
6k views

How can I set up gVim as my editor on Git for Windows?

I'd like to use gVim as my editor for Git commit messages. I realize Git has its own version of vim, but it's not quite the same as gVim (along with my _vimrc settings) which I use all day anyhow.
Matt Terski's user avatar
13 votes
1 answer
4k views

VIM : How to map command according to buffer type?

I know my title is not that descriptive/clear so let me explain. Yesterday I can across Vimgrep and copen so I added the below line in .vimrc nnoremap <silent> ,/ :execute 'vimgrep /'.@/.'/g %'...
RanRag's user avatar
  • 49k
13 votes
3 answers
2k views

Deleting buffer from vim session

Am I not deleting buffers properly before saving my session? It seems to glom onto every buffer I've had opened. I use gvim with the standard :tabe and :tabnew commands. Clean start of gvim I open a ...
jjt's user avatar
  • 1,273
13 votes
3 answers
11k views

Windows terminal/Console/shell in Vi mode?

I'm a big fan of VIM and I use VI mode for my terminal in Mac/Ubuntu. It's very easy to set a Vi Mode in Unix OS: simply put set editing-mode vi set keymap vi-command into ~/.inputrc. However, my ...
songyy's user avatar
  • 4,463
12 votes
3 answers
1k views

Why does Vim on windows use \n for searching?

So I was changing code from foo() { to foo() { and I noticed that the searching pattern required me to search for \n, but when I tried to replace it with \n I got the ^@ character, and I had to ...
tzenes's user avatar
  • 1,699
11 votes
6 answers
8k views

Backspace in Terminal Vim (Cygwin)

I'm running a default cygwin install on Windows 8 and can not get the Backspace key to delete characters - I'm expecting the character to be overwritten with a blank when I backspace. I've tried ...
Warrick FitzGerald's user avatar
11 votes
1 answer
22k views

How to Install Vim Plugins in a Windows Environment

I am just getting started with Vim and setting up the environment with some of the plugins recommended by http://vimawesome.com/. I downloaded and placed plug.vim in C:\Program Files\Vim\vim74\...
noumenal's user avatar
  • 1,149
11 votes
2 answers
3k views

How do I add Python support in Vim in Git Bash?

I want to add Python support in Vim in Git Bash, how do I do this? I get false when running: :echo has('python')
gummiost's user avatar
  • 694
10 votes
14 answers
2k views

Great tools to find and replace in files? [closed]

I'm switching from a Windows PHP-specific editor to VIM, on the philosophy of "use one editor for everything and learn it really well." However, one feature I liked in my PHP editor was its "find and ...
Nathan Long's user avatar
10 votes
5 answers
26k views

Where can I find vimrc file in Windows?

I've recently installed vim text editor on my Windows. I've looked for any explanation about the location of vimrc file on Google, but I couldn't find any meaningful explanation. Where can I find ...
Naveen kumar's user avatar
10 votes
1 answer
8k views

Visual mode in gVim on Windows doesn't work the way as it works in Unix

I'm using gVim version 7.3 on my Windows. When using gVim in my Unix, to insert a common text at the beginning of each line in a file, I do the following steps: Enter visual mode (CTRL+V). Select ...
sundar's user avatar
  • 389
10 votes
4 answers
3k views

How do I redirect output into Gvim as a list of files to be opened?

I would like findstr /m background *.vim | gvim to open all *.vim files containing background in a single instance of gvim - but I can't get the piping to work. This is very similar to this question ...
E.Beach's user avatar
  • 1,859
10 votes
2 answers
2k views

How to use "gf" on filenames containing spaces in gVim?

In gVim if the cursor is over a filename (like "C:\Program Files\Vim\vim71\README.txt" ) which contains spaces then using 'gf' fails. I found the isfname option but the documentation says one ...
Richard's user avatar
  • 3,082
10 votes
3 answers
17k views

Installing pathogen vim plugin on Windows

I was going to install the pathogen plugin in GVIM for windows but the instructions say to install in the \vimfiles\autoload folder which I don't have. How would I install pathogen?
user1452370's user avatar
10 votes
6 answers
5k views

Switching to VIM window by name

There are some excellent Vim plugins for switching to a specific file or buffer by typing part of the name. Does anyone know of a plugin like these that allows for quickly switching between open ...
Zack L's user avatar
  • 101
9 votes
5 answers
10k views

Can't use gvim with pathogen under windows

I have pathogen setup and working fine under Linux, but when I try to use the some configuration with gvim73 under windows it doesn't work at all. I don't get any errors but it does nothing. Here is ...
Chris Nicola's user avatar
  • 14.5k
9 votes
4 answers
5k views

how to type certain commands in vim, like CTRL-] ^Wc etc.. on a German Keyboard

I'm sitting here feeling silly - the vim help tells me to hit CTRL] (to follow links in the help) and I can't get it!? Same problem with ^Wc (close a split window) I have a German keyboard and ...
Johannes's user avatar
  • 3,002
9 votes
7 answers
7k views

Trying to compile and debug C++ from Vim

I've been learning C++ and Allegro using Code::Blocks on Windows XP, and recently felt like learning Vim. However, I have no idea how to compile a program "manually" (i.e., without using an IDE). For ...
Caio's user avatar
  • 91
9 votes
5 answers
7k views

Multiple tabs in Windows and gvim

I am trying to get the Edit with Vim context menu to open files in a new tab of the previously opened Gvim instance (if any). Currently, using Regedit I have modified this key: \HKEY-LOCAL-MACHINE\...
9 votes
4 answers
5k views

How to use Windows environment variables in Vim script?

I have a Vim script that calls an external shell script and reads the output into the current buffer. It works fine in Unix systems. I'm trying to make the script OS-agnostic, so I want it to work for ...
Nick Coleman's user avatar
8 votes
4 answers
8k views

Executing Python with Gvim

open gVim. then using the File Menu and MenuItem Open to open a file pi.py which has the following tiny script: How do I execute this code using gVim? EDIT If I use either :! python pi.py or :w !...
whytheq's user avatar
  • 35.1k
8 votes
8 answers
4k views

Can I force gVim to open dragged-in files in a new tab?

I'd like gVim to open files dragged into it to open in a new tab, instead of replacing the current file. This question is on the right track, but I'd like to be able to run multiple instances of gVim,...
wes's user avatar
  • 7,985
8 votes
4 answers
4k views

How to configure IPython to use gvim on Windows?

This really looks like something I should be able to find on Google, but for some reason I can't make heads or tails of it. There's the EDITOR environment variable, the ipy_user_conf.py file, the ...
elifiner's user avatar
  • 7,475
8 votes
3 answers
2k views

How can I use gvim for svn commit messages under Windows?

Under *nix I can set SVN_EDITOR to gvim --nofork to do the trick, but that doesn't seem to work under Windows. Is there any solution for that?
usta's user avatar
  • 6,779
8 votes
4 answers
2k views

How do I get GNU Unifont or Free Mono working on gvim windows?

I am trying to get support for runic characters in gvim on Windows 7. I have the fonts Free Mono and GNU Unifont (which both support this range) installed in my Fonts directory, but they do not ...
xdhmoore's user avatar
  • 9,477
8 votes
3 answers
3k views

vimrc to be cross-platform and synced with Dropbox.

I'v been using vim/gVim so far in my Linux Machine, and I have a Windows machine as well. In this windows machine I'm mainly notepad++. I would like to store all my .vimrc settings and .vim folder in ...
Somebody still uses you MS-DOS's user avatar
8 votes
2 answers
3k views

Script to enable double click a file in explorer and launch/run it with a WSL App (Neovim, Vim, etc) within Windows Terminal

I use WSL (Windows Subsystem for Linux). I have Neovim/Vim/etc installed in WSL, and wish to be able to open a file in explorer, and have it open in say Neovim installed in WSL, within windows ...
run_the_race's user avatar
  • 2,054

1
2 3 4 5
9