Questions tagged [gvim]

gVim is the GUI version of Vim (opposed to Vim running in a terminal emulator). It behaves exactly the same, but has additional graphical features.

gVim supports several diffferent toolkits: Win32, GTK+ 2, GTK+ 1, Athena, Motif, and Photon.

For MS Windows systems, the native Win32 toolkit is almost always used. For Linux and UNIX systems, GTK+ 2 is the most common.

For more information, see :help gui.

gVim also has GNOME session support. See :help gnome.

458 questions
13
votes
1 answer

Can I make gvim not use graphical dialog box for ':set confirm'?

I use gvim on windows very frequently. I have in my .vimrc: set confirm However, this opens a little dialog box, so I have to use my mouse to quit. In command line vim, I get this: :q Save changes to "Untitled"? [Y]es, (N)o, (C)ancel: Is there…
DJMcMayhem
  • 17,581
  • 5
  • 53
  • 85
11
votes
2 answers

Disable Ctrl-Z in normal mode

If I press Ctrlz in normal mode, it makes my gVim "minimized" or in vim (not gVim ) it goes back to the shell. I want to disable this feature but I can't unmap Ctrlz: unmap returns no such mapping There is no option called suspend, allowing…
x3usph1s
  • 113
  • 1
  • 5
9
votes
2 answers

`gx` not opening url in gvim but works in terminal

I use vim in the terminal as well as gvim. My issue is that in the terminal gx opens urls without a problem but in gVim nothing happens. Has anyone else experienced this issue and found a fix? I'm using gvim 7.4 with patches 1-52.
moorej
  • 193
  • 4
7
votes
1 answer

How to force vim to interpret file as dos-format

I am using vim to view XML files created by a Windows app. It is probably a malformed XML file because vim thinks it's opening a Unix file format. So I end up seeing ^M at the end of almost every line. I don't want to mess with the file, as vim…
user36800
  • 443
  • 3
  • 10
4
votes
3 answers

GVim keeps opening on the wrong workspace

I'm using KDE 5 with multiple desktops (in a 3x4 grid) and I regularly open Vim from the command line, e.g. with gvim file.txt The problem is when I do this, GVim often appears on a different desktop than the one I am currently focused on. I then…
joeytwiddle
  • 3,622
  • 19
  • 28
3
votes
1 answer

Search multiple keywords in a sentence that are not in the right order as in the search pattern

I often need to find several keywords in a sentence. For example: This is just a sentence of word1 word3 word4 word2 text in my huge Vim data file. I can't remember the exact pattern of search, hence I need a search that can do that: Is there way or…
andrew_ysk
  • 389
  • 2
  • 12
3
votes
0 answers

How to make gvim always confirm quit when pressing the X button on the window

Using set confirm or the confirm-quit plugin makes it so that vim always confirms quit. But in gvim, if you just press the X at the top, it always quits -- no confirmation (unless the file is unsaved) Sometimes I open 3+ tabs with several buffers…
101010
  • 131
  • 1
3
votes
1 answer

Gvim and Unicode indic characters

On my Linux system, if I try to type indic characters (specifically Kannada) in gvim (via ibus), the display is so garbled, I can barely see what has been typed. Is it the expected behaviour? Can Gvim display all the utf characters properly like…
mas
  • 163
  • 5
2
votes
2 answers

Remove vim status bar background color?

How can I remove the horrible color of my vim status bar has? I'd like it to be the same color as the background. My current settings in my ~./.vimrc file (or ~/.vimrc.after file as I use) which relate to the status bar are: set laststatus=2 …
Oli
  • 21
  • 1
  • 2
2
votes
2 answers

How to replace all space with "_" for the first quoted string?

I have several lines, and each line has 2 quoted string, and I want to replace all space with "_" for the first quoted string. How to do that? Could I use macro? select 'a b c','a b c' union all select 'a e1 c d','a e1 c d' union all select 'a f11…
Daniel Wu
  • 123
  • 4
2
votes
1 answer

How to have Gvim 8.2 work with windows files containing a Unicode colon

Gvim 8.2 displays "Can't open file for writing" with a windows files that have a Unicode colon in the file name. Notepad, Wordpad, LibreOffice all work.
JerryD
  • 23
  • 2
2
votes
1 answer

Why does gvim --remote change order of files?

When I open multiple files in gvim with no options, they are assigned to buffers in the order I specify on the command line: gvim foo.cpp foo.h bar.cpp bar.h Doing :ls then yields: 1 %a "foo.cpp" line 1 2 "foo.h" …
Mike Holt
  • 278
  • 2
  • 6
2
votes
0 answers

Cursor change when GVIM lost focus

In GVIM I use vertical thin line as my cursor by adding following line to my .gvimrc set guicursor=a:ver13-Cursor This works perfectly as long as window remained focused. As soon as GVIM window lost it focus cursor change to bad ugly transparent…
pazel1374
  • 121
  • 2
2
votes
1 answer

Key repeat - removal of modifier

Using GVIM, I sometimes hold ctrl-d to page-down a lot, and I let go of ctrl first (unintentionally and momentarily) and cause a line to be deleted b/c an additional 'd' without 'ctrl' is sent. What is the expected behavior on different operating…
nachum
  • 131
  • 2
2
votes
1 answer

Read-only (silent) select in Vim

When I select text in Vim using the mouse, the editor displays "SELECT" at the bottom of the window, like so: This always makes me uneasy, because I have found that the Select mode somehow changes very easily into Insert mode. Is there a way to…
Sabuncu
  • 145
  • 1
  • 6
1
2 3