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.

Filter by
Sorted by
Tagged with
55
votes
6answers
86k views

How can I change the font size in gVim?

Is there a way to change the size of the font in gVim, using native commands? And if not, what script can be used to do it quickly?
40
votes
1answer
22k views

Why do I need both a vimrc and a gvimrc?

There seems to be two ways to store preferences specific to gvim: Keep an .vimrc file for vim and a .gvimrc file for gvim specific additions. Keep all settings in .vimrc and wrap gvim specific ...
39
votes
1answer
11k views

How to fold text in a JSON file?

I have a large JSON file. It is not easy to work on all file at a time. I want to fold some content so that I can work on a section of JSON file. E.g.: { obj: {+}, // folded section obj:{ ...
35
votes
3answers
12k views

Can I use a non-monospaced font in either Vim or gVim?

Is there any way to use a non-monospace font in either vim or gvim? I tried changing the font for gVim with: :set guifont=Dejavu\ Serif\ 12 But this gives me some rather ugly results: I get the ...
26
votes
6answers
6k views

What additional features do gVim and/or MacVim offer compared to Vim inside a terminal emulator?

I'm learning Vim by watching screencasts. And I'm wondering, why do a lot of people use gVim or MacVim? From what I can see, the GUI Vim version only have additional features that involves using ...
24
votes
1answer
10k views

Is there any way to change the popup menu color?

Is there any way to change the background color of the popup menu in gvim? The default background color is pink, which is a little weird to me.
15
votes
4answers
9k 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 ...
15
votes
4answers
40k 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 ...
14
votes
1answer
3k views

Why are my windows scrolling together?

I have two windows open on the same buffer and I want to edit two parts of the same file at the same time. I can't because the windows are scrolling together. I have noscrollbind set so I am ...
13
votes
5answers
13k views

how to install vim with python support for debian strech

I installed debian strech two days ago. I installed vim and configured some plugins. I always encountered the following error while opening any file: vim app.py Error detected while processing /home/...
13
votes
1answer
602 views

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 ...
12
votes
1answer
828 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.
11
votes
2answers
270 views

Quickly switch between fonts at runtime

While fonts can be manually selected in GVim from the menu, I have a few preferred fonts I would like to switch between depending on the task at hand (small bitmap, larger OTF... etc). Is there a way ...
9
votes
2answers
6k views

How to adjust gVim to my HiDPI display scaling on Windows 10?

Being a user of GUI editors (mostly Sublime Text) and one simple CLI editor (nano), and just having gVim (the GUI version of vim) installed on my Windows 10, I can't figure out how to adjust this ...
9
votes
2answers
3k views

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 <c-z> returns no ...
9
votes
2answers
7k views

How to display Font Awesome in Vim?

I installed ttf-font-awesome in Arch Linux; if I open up a file which contains icons from Font awesome it recognizes the file as utf-8 but the icons are displayed as squares. Does anyone know how to ...
9
votes
1answer
1k views

Browse oldfiles list length

I use :browse oldfiles command to open recent files quickly. The list becomes very long with time -- I have 100 items in the list and need to tap space to complete this action. I want to reduce this ...
9
votes
2answers
1k views

How do I prevent Vim from unindenting empty lines?

Vim keeps unindenting the lines I want to keep indented if I don't write anything on them... I'll give an example, where the | is the caret. Caret is indented and I press enter if expression: ...
8
votes
2answers
1k views

`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 ...
8
votes
1answer
1k views

How do I create buttons on the toolbar to increase and decrease font size?

Many systems offer + and - zoom buttons. Can someone please demonstrate how such two buttons can be emulated with gvim? This means that clicking the + button would increase the font size by one step....
8
votes
2answers
587 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
2k views

gvim window looks bad

I don't know why my gvim windows looks like this in linux. Is there anything I need to add to my vimrc file in addition to this? execute pathogen#infect() syntax on filetype plugin indent on set ...
7
votes
1answer
11k views

How to build vim from sources with GUI support?

I am trying to build vim from source, especially gvim, to get some of the bug fixes that have been plaguing me in the office repository. I can compile vim fine but gvim is not being generated due to ...
7
votes
2answers
947 views

soft linewrap width

When wrapping text in GVim, the wrap occurs at the right side of the GVim window. I would prefer to have it wrap at column 80 however. A solution I have found is to :set columns=80, but this shrinks ...
7
votes
1answer
283 views

Can visual select mode be integrated with the Unix selection clipboard?

Is it possible to configure vim (obviously with :set mouse=a) and/or gvim such that the visual selection modes automatically integrate with X's selection buffer? I am aware of how to setup the copy ...
7
votes
1answer
850 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 ...
6
votes
2answers
8k views

Can I still use console vim if I install a GUI version?

If I purge my existing vim-full installation and install a GUI version like vim-gnome or vim-gtk, can I still use it in the text mode I am familiar with? What if I am using it from a terminal via SSH?...
6
votes
2answers
3k views

Why does the same color scheme look better in gvim than Cygwin?

I installed Cygwin/x on my PC, and I've set the terminal to xterm-256. But when I start vim from cygwin terminal, the look and feel of the same color scheme is different on cygwin and gvim. gvim ...
6
votes
3answers
1k views

Switching to the local directory after loading a file?

When running gvim by double clicking with a file in a graphical file manager, like nautilus, the vim instance is called with a strange current directory (seems root sometime, but I am not sure). This ...
6
votes
2answers
4k views

Vim jump between words and stop at end of line

In normal mode, b and w are jumping between words, and I would like to stop at the end of line. For example: The cursor is right over here When I press w, what I expect is Instead, the cursor ...
6
votes
1answer
3k views

Paste from clipboard into CtrlP input in GVim

Using CtrlP with GVim I often need to open a file with the name from the system clipboard (on Windows). So my workflow should be: Ctrl+P {somehow paste name from the clipboard} Select file and open ...
6
votes
1answer
2k views

Remapping Ctrl-(h j k l) to move between windows

Im trying to increase my efficiency at moving between buffers, and the Ctrl-w-(hjkl) movement doesn't work for me. How can I remap Ctrl-(hjkl) to the Ctrl-w version? I have already tried: inoremap &...
6
votes
2answers
1k views

Vim lost custom highlight settings after recovering from sessions

I defined some highlights in the vimrc file and it works well in gvim. However after I mksession and sourced it back, I found that some (maybe all) of the custom highlights were lost and vim used the ...
6
votes
1answer
3k 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 ...
6
votes
1answer
3k views

Copy a word and paste the same word at multiple places in vim

If I try to copy a word via this yw – yank the current word and paste it to somewhere, it works but If I try to paste it somewhere else one more time old world gets lost with previous replaced word. ...
6
votes
1answer
205 views

What's the point of :promptfind after all

Not sure if it's an appropriate question. But I just can't help wondering, why would any Vim user find it necessary to invoke a GUI search prompt instead of search using / or ?, why would the designer ...
6
votes
2answers
477 views

MacVim - doesnt find programs in PATH when running commands using “!”

When I'm using vim in a terminal, it uses the PATH I have set, and I can run programs and scripts located in my ~/bin folder using ! For example :! some_bash_script.sh When I try this in MacVim, it ...
6
votes
1answer
805 views

Hide statusline when more than two windows open without suffering the extra hidden empty line artifact?

I want to hide the statusline, I don't ever use nor care about what is written in it. The problem is vim doesn't offer a way to achieve that in a convenient manner. If I just do set laststatus=0 I ...
6
votes
0answers
155 views

gVim - Use different fonts using :highlight

I want to set gVim font size for Comment highlight group. When I set it, it does not do anything (the font is still the same but color changes). My .gvimrc: se guifont=Fira\ Mono\ Regular\ 10 hi ...
6
votes
0answers
97 views

Prevent gvim from clearing the clipboard on exit [duplicate]

If I copy text into the xterm clipboard ("+y) from gvim, it is cleared when I exit gvim. How do I prevent this? I've found the solution for vim, but it doesn't work for Gvim: autocmd VimLeave * ...
5
votes
3answers
7k views

How to stop gVim wrapping text at column 80

I have a README.txt file as follows: This document is a list of a) Known issues in the services or test environment, i.e. things expected to fail b) Things to be improved in the test suite c) ...
5
votes
2answers
954 views

How to prevent “echo” output from being overwritten when leaving visual mode?

I am using gvim 7.4 on Windows (32 bit) and using the wc word-counting macro :WC by jcline. When I manually set a range and run the macro, e.g., :'a,.WC<CR>, I get the expected counted XXX ...
5
votes
2answers
165 views

Make column for signs permanent in gVim

I just started using ycm with clang-completer, which apparently can also do syntax checking. It instantly reminded me why I avoided syntax checking in gVim: As soon as an error is found, the signs ...
5
votes
1answer
81 views

How do I get rid of <filename>.project.vim files?

It seems like any time I edit a file with gvim it creates a litany of files I don't want or seem to need. I understand the <filename>.~ files are backups of the file before I started editing and ...
5
votes
1answer
832 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 ...
5
votes
1answer
676 views

Can I scroll in vim with my touch screen?

I frequently use gvim on a windows 7 computer with a touch screen. If I flick up or down with the touch screen, it creates a selection (in S mode, not V mode). I'm not really a fan of this default ...
5
votes
2answers
1k 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
411 views

Can I set breakpoint in a vim plugin script written in python?

When a vim plugin is developed in a mixed script of vim script and python, can we set breakpoints and debug the python script. I tried to use PDB module, but vim is dead when it go to the pdb....
5
votes
1answer
1k 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 ...
5
votes
1answer
288 views

Disable bold character under cursor

This might be a newbie question but I can't seem to find an answer anywhere. I've created a custom colorscheme, but I don't know how to stop the character behind the cursor from becoming bold. This ...

1
2 3 4 5
7