Questions tagged [gvim]

All about the VIM editor in one of its graphical incarnations.

Filter by
Sorted by
Tagged with
1 vote
0 answers
113 views

How to resize toolbar in gVim?

The problem is in the picture: I tried to :set toolbariconsize=small But it only changes icon size, but not the toolbar. It is staying huge. How to solve it? I have fresh Debian 12 + KDE 5.27.5
redf1sh's user avatar
  • 11
0 votes
1 answer
156 views

YCM on windows vim can't find python

I would like to be able to use YouCompleteMe plugin on vim (on windows). I have installed vundle, and followed the installation guide for YCM on Windows. When I run :PluginInstall I see: Traceback (...
leo's user avatar
  • 1
0 votes
1 answer
59 views

gVim updates the title text field when the window is made narrower - can I stop this handy behavior?

Depending on the width of the GUI window, gVim 9.0 on Windows 10 (maybe Win 11 as well) would decide to be creative with the title text of the window, and show any of the following when I review my ...
llinfeng's user avatar
  • 1,271
0 votes
0 answers
141 views

Vim/Gvim is no more indenting XML (when entering text) in the way I want

Given a file with extension .xml, I used to indent my content as follows: <?xml version="1.0" encoding="UTF-8"?> <root> <p>This is a text containing <i&...
Pierre François's user avatar
0 votes
0 answers
112 views

gvim's backup setting not working

I installed gvim on win10 in D:\Vim. And I added the following set config in D:\Vim\_vimrc: set noundofile set nobackup nowritebackup And then :wq. However, this saved nobackup config still not ...
YQ.Wang's user avatar
  • 101
0 votes
1 answer
267 views

Why does my colorscheme sometimes get all messed in GVIM on Windows 10?

I have recently added the following code to $MYGVIMRC (which otherwise has been unchanged for years and has been working fine) to have my GVIM (8.2) on Windows 10 switch background automatically ...
Armen Michaeli's user avatar
1 vote
1 answer
376 views

perforce P4 not working when called from vim

when calling p4Edit from vim like this : :!p4 edit /data/test.py i get an error : test.py - file(s) not in client view. but when sending the same command from the terminal everything is working well. ...
bubismark's user avatar
  • 111
1 vote
0 answers
184 views

How to paste control characters in gnome-terminal?

System: Ubuntu 18.04 Question: How can I copy a string that includes control characters such as ctrl-a, e.g. from gvim (fenc=ascii or utf-8), and paste it including control characters in gnome-...
asoundmove's user avatar
2 votes
0 answers
240 views

Unable to Install gvim/dependency in local directory without super user permission

Wanted to install gvim in the local drives as I don't have the root permission but it does install the GUI version [i.e. GVIM] of it. Steps Followed: First I tried doing the ./configure process with ...
Vimo's user avatar
  • 121
0 votes
1 answer
135 views

While gvim is running, mintty displays Unicode UTF-8 characters as question marks

When I fire up gvim in the background in a Cygwin mintty terminal, Unicode UTF-8 characters start getting displayed as question marks. When I quit gvim, mintty reverts to the correct behaviour. In ...
Diomidis Spinellis's user avatar
1 vote
2 answers
143 views

gvim 8.2 doesn't redraw the screen when editing a git commit message in windows 10 powershell

I installed vim on windows 10 using chocolatey. When I edit a file in powershell, everything works great! I even got copy and paste to work. However, when I edit a git commit message, vim doesn't ...
Heath Borders's user avatar
5 votes
1 answer
3k views

Configure gvim swap, undo, and backup files on windows

I installed vim on windows 10 using chocolatey. When I edit a foo file in powershell, vim leaves behind .foo.un~ or .foo~ files. What are these and how do I stop vim from leaving them around?
Heath Borders's user avatar
1 vote
1 answer
663 views

gvim 8.2 doesn't paste on windows 10 in powershell

I installed vim on Windows 10 with chocolatey. Copy and Paste don't work when I invoke vim in powershell. I expect them to work as long as I'm in insert mode. How can I make copy and paste work?
Heath Borders's user avatar
0 votes
1 answer
333 views

Is it possible to specify specific different fonts for different languages in GVIM 8.2?

My GVim 8.2 I am using Traditional Chinese Windows 10 I am trying to set up my GVim 8.2 to use a choice of font for Chinese language and then a different font for English, because of my preference. ...
Michael C's user avatar
1 vote
0 answers
214 views

Windows 7 Showing Rectangle Boxes Instead of Characters! [gVim]

I have been trying to solve this mystery for such a long time. Within Gvim I see all the airline symbols are not showing. Some are like rectangle boxes. It seems MS Word 2016 can show slightly more ...
Hossain Rafi's user avatar
1 vote
0 answers
89 views

gvim, latex suite, and okular forward search issue

I have a gotten my gvim + vim-latexsuite + okular working well, except for one thing: forward search. I have tried many of the hints on line, but I can't find the solution, but I am close! So, I ...
Hammar's user avatar
  • 11
1 vote
0 answers
73 views

gVim gets shorter on each start with lazyredraw and showtabline=2

In my vimrc, I have the following: set lazyredraw set showtabline=2 With both these options set, every time I start gVim, the window is a couple lines shorter than it should be. Even if I use set ...
dtauxe's user avatar
  • 11
5 votes
1 answer
2k views

vim windows 10 set packpath option for native package manager

[1] I created a new package directory using the 'packpath' option in my vimrc: :set packpath+=$HOME/vimlocal/pack [2] I run the command :set packpath? and the directory is listed in the output: ...
user2962912's user avatar
0 votes
0 answers
364 views

Unable to include plugins using vimrc . Error for each line of my vimrc

I have installed gVim and trying to have customizations, i.e, including plugins. https://raw.githubusercontent.com/kinbiko/dotfiles/master/vimrc Used multiple plugin managers, but in vain. Error ...
John Hugh's user avatar
2 votes
2 answers
7k views

Cannot set X11 forwarding from a WSL-machine

I put the following settings into my SSH-enabled remote machines, with the hope that I can launch GUI programs through SSH sessions. # These settings shall go to `/etc/ssh/sshd_config`. ...
llinfeng's user avatar
  • 1,271
0 votes
0 answers
44 views

Linux, Gvim lock file

I have a file opened with gvim and I want to run a Perl script that accesses that file. I get compilation errors, but if I close gvim, everything works fine. Warning: linker script did not specify ...
Ovidiu_Florin's user avatar
0 votes
1 answer
7k views

How do I set the font in command line vim (vim for windows)?

everything I see says I should use guifont but if I open a console and try to tab complete set gui--- I only see set guicursor Im using command line vim not gui vim. What do I put in vimrc to set ...
user1028270's user avatar
  • 1,045
0 votes
1 answer
676 views

Requesting aliased :guifont rendering in Vim on Windows

Non-AA font rendering seems available everywhere except for Windows. In MacVim, this is possivle via noantialias. When using GTK2 front-end, the same can be achieved by adding antialias=false to the ...
Bass's user avatar
  • 642
1 vote
2 answers
1k views

how can I open a terminal split in vim 8.1 without switching to it or going back to the previous split inside a vimscript

Basicly I want the following functionality: Using vims new terminal functionality, I want to be able to press a button, that opens a new terminal window, without stealing focus from the file I'm ...
user2741831's user avatar
0 votes
1 answer
107 views

Can I open a split build window in gvim 8.1 that shows the build output live while I can continue looking at code?

I like using gvim but I think its kind of time consuming to have to always watch the build process complete until I can continue editing. I'd like to just hit a key and have a bottom split open up ...
user2741831's user avatar
3 votes
1 answer
2k views

Vim run command in background, but show output live in vsplit

How can I run a terminal command (for instance build) in vim while working on a file, while simultaneously showing the output live in a vsplit?
user2741831's user avatar
2 votes
1 answer
3k views

How to set vim as the default Text editor?

I'm trying to set gVim to be the default text editor on Windows but it won't work. It works with notepad++, editor... but not with Vim. Any ideas how to fix it? Screenshot: http://prntscr.com/lm069a ...
user avatar
2 votes
0 answers
791 views

How to make Vim play nice with Python 3.7 on Windows

I want to use Gvim 8.1 with some plugins, but some of those mostly require Python 3.7 Fine, I found one Gvim installation ( https://github.com/vim/vim-win32-installer) that was compiled with Python 3....
yarun can's user avatar
  • 1,000
2 votes
1 answer
894 views

where are the windows gvim language default settings?

I am running gvim 8.1 on w7 x64 US english. My windows system regional setting is Germany though as I am located in Germany and I want German currency and date settings. When I run vim and type :lang ...
user333869's user avatar
0 votes
1 answer
192 views

Different vimrc by filetype

As the title says: can I use different _vimrcs for different programming languages or filetypes? I have to use a lot of different programming languages for lots of different subjects, and for each ...
Paul Kim's user avatar
  • 101
2 votes
2 answers
16k views

How do I make <Ctrl-a><Ctrl-c> copy and select all in vim?

I know :%y+ is a convenient way to select all and copy to the system clipboard--which works on my system--but I'm so used to using <Ctrl-a> <Ctrl-c> that I'd like to use the same keystroke ...
Al C's user avatar
  • 217
1 vote
2 answers
615 views

MacVim - how to make mouse based selection be "visual mode"?

Sometimes I select text in vim using the mouse. I'd like that selection to be treated the same as a visual mode selection, so I can immediately start running commands against it. Is there a way I ...
Brad Parks's user avatar
  • 2,938
8 votes
1 answer
2k views

Stop vim indenting new lines after comma in plain text files

I use vim/gvim as my default text editor. When I'm editing plain text files with no syntax highlighting, it automatically adds indentation when I press enter, if the last character on the finished ...
spraff's user avatar
  • 2,108
0 votes
2 answers
362 views

gVim menus disappear in upgrade from Ubuntu 18.04 to 16.04

GVim menus have disappear after upgrading to Ubuntu 18.04 (from 16.04). F10 shows a menu but I don't know how to change the font size. GVim is my code editor. It is VIM version 8, and shows as "...
user224461's user avatar
2 votes
2 answers
997 views

Not able to map any keys between F1 to F5 in gvim

I am not able to map any keys between F1 to F5 in gvim through vimrc. However all the keys after F5 are being properly mapped. Here is my vimrc file content. map <F1> :q!<ESC> map <...
Karan Shah's user avatar
2 votes
1 answer
165 views

In gvim, how do I get 4 splits into 2x2 layout

I have 4 splits in gvim, with 1 on the left, and 3 on the right. I'd like to get them into a 2x2 tile arrangement. I can't figure out a way to take a window that spans the screen (horz or vert) and ...
Adam Berkan's user avatar
1 vote
1 answer
252 views

Cannot write changes to hosts file at Windows 7 by GVIM

I removed read only permission from C:\Windows\System32\drivers\etc\hosts file and file is not hidden. I belong to Administrator group at Windows 7 system. When I open file in gvim without ...
lluke's user avatar
  • 1,014
1 vote
1 answer
1k views

vim not picking up new syntax files

I copied this GLSL syntax file to /usr/share/vim/vim74/syntax/glsl.vim, its permissions are -rw-r--r-- same as other syntax files. I gvim /tmp/x.glsl but it does not activate GLSL syntax highlighting ...
spraff's user avatar
  • 2,108
0 votes
0 answers
276 views

Could not load library msvcrt-ruby240.dll

I have installed the last version of the x86 version of vim 8 and I have an issue whith the ruby integration. My plugins like LustyExplorer can’t work and when I enter ruby –version I get the ...
frantz's user avatar
  • 1
0 votes
1 answer
272 views

Gvim - Relative line numbers bug (Graphics rendering bug)

I'm not sure if there is a bug in the rendering code of Gvim or whether there is something in my .vimrc / .gvimrc which has caused a rendering problem. As can be seen on the above image, there is a ...
user3728501's user avatar
  • 2,624
6 votes
1 answer
4k views

Vim and Gvim - Change color for cursorline line numbers

I have downloaded and installed the blueshift colorscheme for vim/gvim. This highlights the current line with cursorline, which is what I want, however the background color of the line numbers column ...
user3728501's user avatar
  • 2,624
2 votes
0 answers
566 views

Vim - Detect Caps Lock Status

My question is simple and straightforward! =D In this thread @OsQu... Vim - Is Capslock on? ... says that you can use the Automation Hotkey Scripting (AHK) below to detect the Caps Lock (on/off) ...
Eduardo Lucio's user avatar
0 votes
1 answer
638 views

How to control the font used by Athena-gvim in dialogs?

To reduce the number of dependencies, I build gvim to use the Athena widgets only (no GTk, etc.) This works fine, but there is a problem with localization... My locale is set to use KOI8-U. After ...
Mikhail T.'s user avatar
2 votes
1 answer
1k views

Execute a command using a filename from the vim buffer

I'm working with some DokuWiki-like files. The files have companion PNG files in the same directory. They're referenced in the following syntax: {{filename.png}} I want to write a macro which ...
mgjk's user avatar
  • 1,417
1 vote
1 answer
82 views

Open a source code in Different Editor based on your Modifier Key

I use multiple source code editors for my development, namely GVim, Notepad++ and Sublime Text (in that order). (I can consolidate it to one editor, but that is a different discussion). Current setup ...
DigitalNomad's user avatar
  • 1,602
0 votes
0 answers
126 views

How to force vim to edit a file which is open in a gVim session?

I would like to edit a file in an SSH session on a server. That file is on a Network File System. I was editing it while sitting at a workstation in my office and I left a gVim session running with ...
musically_ut's user avatar
2 votes
0 answers
768 views

Why some Mono spaced fonts not recognized by GVim?

I have a cmtt10.ttf font that I would like to use in GVim on Windows. This is TrueType font. And it is recognized by Notepad++. But when I try to use in GVim. It does not work. Here is how I set in ...
DigitalNomad's user avatar
  • 1,602
1 vote
1 answer
242 views

How to colorize from character ";" to end of line in VIM?

For example: G28 X0 Y0 ; home X and Y I'd like the ; home X and Y portion to be formatted as MoreMsg or some other class. How do I format from ; to end of line?
Davo's user avatar
  • 173
1 vote
1 answer
2k views

How to map ALT-return in .vimrc?

I'm trying to map a combination of left alt and return keys in my .vimrc, yet without success. I've added all those mappings to my .vimrc file, with no effect: map <M-esc> itest0<return>&...
browning0's user avatar
  • 111
0 votes
0 answers
602 views

Modifying GVIM Themes/Toolbars

I have this problem, that I cannot seem to figure out. On one Operating system, centOS, I have a look that I like. On Ubuntu, the look is different. I don't know where the discrepancy lies. How do ...
Isaac Castillo's user avatar

1
2 3 4 5
11