Skip to main content

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
1 vote
1 answer
57 views

Change font size => change gVim window size

I wish the gVim window to not resize when I change the font size. Is there any way to achieve this? More explanation: when I change font size in gVim then the gVim window resize automatically whereas ...
Barzi2001's user avatar
  • 640
1 vote
1 answer
113 views

Caps-Lock plus Shift for lower case alphabet

I am using gVim on Microsoft Windows. Consider two types of alphabet entering: When the Caps-Lock is off, enter upper case alphabet with Shift-. When the Caps-Lock is on, enter lower case alphabet ...
Limina102's user avatar
  • 165
1 vote
0 answers
59 views

Is there any "minimalist" GVim (or any GUI-based Vim) distribution for Windows?

I'm currently working on a simple WPF (Windows) application that employs GVim as an embedded text editor. The application is supposed to embed GVim into itself as follows (although it's mostly ...
Sad Lame Developer's user avatar
0 votes
0 answers
22 views

in csh terminal gvim -d is sourcing .cshrc file

In csh shell, whenever I am doing gvim -d it is sourcing .cshrc file. I tried passing -f option. It is not working. I tried solution suggested in: How to disable vim source .cshrc when running ...
Kedar's user avatar
  • 11
1 vote
2 answers
68 views

Store a windows path in a global variable and access it later?

I want to store a path in a global variable and then change to a directory. :let g:OneDriveB='C:\Users\bram\SomeDrive\ -\ Das\ Company\ Name\' # Works. :cd g:OneDriveB # This second ex fails as the ...
leeand00's user avatar
  • 3,601
0 votes
2 answers
31 views

Key Shortcut to Search

Which key(s) are the shortcut for searching the file for the word the cursor was on? I was distracted and didn't realize that I was still in gvim when I started typing something for the terminal. ...
David Robie's user avatar
1 vote
1 answer
78 views

Start Vim window at a certain size?

Is there anything I can put in my _vimrc for gVim to make the window open a certain width/height?
leeand00's user avatar
  • 3,601
1 vote
2 answers
55 views

In gVim 9.1 how to have different backgrounds for text and the empty area to the right of <EOL>, with hlsearch ans syntax highlight still working?

I would like to use two different backgrounds colors bg1 and bg2 with: bg1 for all text on a line (possibly nothing if line is empty) up to the end-of-line, bg2 for the empty area after the end-of-...
gilgron31's user avatar
1 vote
1 answer
94 views

Ligature (combining characters) doesn't show in gVim

I use JetBrainsMono in my terminal and gVim. In my terminal, arrows and pipelines become one character visually (-> and |>) gVim has the same font but this same behavior doesn't happen. How can ...
Vinn's user avatar
  • 781
0 votes
1 answer
25 views

Vim register becomes random values in gvim

Given the php code at the end, I add it to my gVim register with "ky. Everything is fine. After some time, when I use it, the vim register looks like this: jjjjjjjjjjjjj/^...
Vinn's user avatar
  • 781
1 vote
1 answer
57 views

Pasting from system clipboard works bad in "Visual-block" mode?

For example: mode: Visual-block. In Gvim: Now, I want to paste the system clipboard, say "4", to the position, I tried "p", now it becomes (that's not what I want!): In Gvim: ...
Joey Ling's user avatar
0 votes
0 answers
26 views

Overview of unsaved file when quitting gVim

When quitting gVim by closing the gVim windows I get a warning message asking me if I want to save my change or not (in case there are unsaved buffers): gVim doesn't show unsaved buffers. It is ...
Vivian De Smedt's user avatar
2 votes
2 answers
118 views

Can't stop the global command using subcommand :substitute (:s) with the check flag (c)

I'm trying to use the global command :g with :substitute to find and replace some string and also with check. So the command like: g/\d/s/.*//gc but the check behavior is not same as in :s I can't ...
M_Sea's user avatar
  • 157
0 votes
1 answer
23 views

I cannot detect where is ^M in my .gvimrc

I have the following .gvimrc: vim9script # ----------------------------------- # This file is sourced AFTER .vimrc # ----------------------------------- set mousehide # Set fonts for gvim # fontsize ...
Barzi2001's user avatar
  • 640
1 vote
1 answer
84 views

Set different colours for different HTML tags

Can we set different colours for different tags in HTML syntax? For example, set a tags to green and div tags to yellow. In VsCode this extension makes HTML tags coloured inside .html, .jsx, .tsx and ...
mohamadi_arch's user avatar
-1 votes
2 answers
56 views

Counting the occurence and printing summary of that

I want to sumarize data information as output shown. My data look like this: apple orange{1} orange{2} ... orange{600} mango{1} mango{2} ... mango{600} strawberry blueberry I want output summary ...
Hassan Gillani's user avatar
1 vote
1 answer
45 views

How to use different font size for different highlight group?

There is a similar question gVim - Use different fonts using :highlight but no answer yet. In short, is it possible to apply different font size to different highlight group? For example, while normal ...
athos's user avatar
  • 207
1 vote
1 answer
48 views

How can I use Regex in helpgrep?

I would like to use Regex in helpgrep. For example, searching for lines or sections that contain two words. Something like :helpg 'word1' & 'word4' to find this line as my result: word1 word2 ...
mohamadi_arch's user avatar
0 votes
1 answer
106 views

When I use helpgrep, how can I highlight my search results?

I'm using :helpg session in my Vim. I would like to highlight the pattern in the results like :set hls does for normal search. Is there a way to do this?
mohamadi_arch's user avatar
1 vote
1 answer
168 views

Why so % does not work when vimrc changes with another editor?

I opened a file in Vim. Then opened vimrc file with another editor (VsCode) and made some changes. I would like those changes to be reflected in my Vim session. I tried :so % but it didn't work ...
mohamadi_arch's user avatar
0 votes
2 answers
85 views

Why doesn't echo % do anything in command mode?

I read the section of current-file in the document. (see :h current-file) And I have a question. if % stands for the current file name, why I can not use echo %?
mohamadi_arch's user avatar
1 vote
1 answer
108 views

What is the meaning of lbr in Vim?

I write set lbr in my vimrc file but I don't know the meaning of that. What does this option do? I know it's about line-breaking but I need more explanation. This is from the Vim document and I can ...
mohamadi_arch's user avatar
1 vote
1 answer
33 views

Pause the rendering/refreshing/drawing of the gVim/Vim screen

I am developing a gVim plugin that manages/reorganizes panels, buffers and tabs. However, while most programmatic re-arranging take milliseconds, they can still look very messy to the eyes while you ...
Louis15's user avatar
  • 133
2 votes
0 answers
65 views

gvim can be really slow to display the last typed character in VirtualBox. How do I fix that issue?

While working in an Ubuntu VirtualBox (host is also Ubuntu), gvim is being really slow at showing the last character I just typed, or, when I move the cursor up/down/left/right, it also takes 1 to 2 ...
Alexis Wilke's user avatar
1 vote
1 answer
160 views

How to generate random string with required length in Vim?

I am using this code for console log nmap cll yiwocll<Esc>p I wanted to add some random string inside this console log, assume 10 characters symbols length. How to achieve this?
hden mila's user avatar
0 votes
1 answer
231 views

Latest gvim unreadable on Ubuntu 22.04.3 LTS. Anyone else have issues?

After upgrading to Ubuntu 22.04.3 LTS, gvim no longer is readable. Both the default version that Ubuntu installs (version 8.2.4919) and the lastest released version of gvim (version 9.0.1677) It ...
Charlie Johnson's user avatar
0 votes
1 answer
50 views

gVim: change colorscheme base on os (desktop) theme

How can I set two color schemes in vim, one when the desktop theme is light and one when the desktop theme is dark? It is particularly useful when using gVim, plugin suggestions are welcome
SinaMobasheri's user avatar
0 votes
3 answers
379 views

Switch focus to :terminal buffer

I am trying to recreate the functionality of the very old conque plugin via terminal in modern vim. So far I have found a few plugins that send code to a terminal buffer. However, these do not update ...
shabbychef's user avatar
0 votes
1 answer
23 views

gvim often give this error: E8backupdir=~/.vim/tmps failed to start the GUI

I often log in remotely to a specific server using ssh -X from a Macbook Pro terminal instance. When I use gvim then usually I get a local Xwindow and can edit normally while the terminal session ...
James B. Byrne's user avatar
0 votes
0 answers
23 views

BufEnter events triggered with a mouse click in gvim: line('.') appear to return a wrong value. How to fix it?

Consider the following auto-group augroup Test au! autocmd BufEnter * :echo line('.') augroup END and open two different buffers in split windows. When using commands such as wincmd p, then ...
Barzi2001's user avatar
  • 640
0 votes
3 answers
43 views

Prevent: 'are you sure' popup on exit when closing the gVim window

Is there a setting that will allow you to just close the window without bothering with the save changes dialog when you exit? Do you have to attach it to an event that answers for you?
leeand00's user avatar
  • 3,601
3 votes
1 answer
629 views

How can we know if we can install a plugin on both Vim and Neovim?

I find in neovimcraft a list of Neovim plugins Can we install them inside Vim or gVim? It seems that the plugins in vimawsome can be installed on Neovim but not always in Vim. Is that correct? How can ...
mohamadi_arch's user avatar
1 vote
2 answers
74 views

Abort background process

Sometimes when a background process in Vim runs (in my case, compiling a poorly written LaTeX document) the background process stops which makes Vim unresponsive. Terminating the process from terminal ...
Hunaphu's user avatar
  • 182
2 votes
1 answer
564 views

What is the arrow notation in the start of some lines in Vim?

I was training in my Vim (gVim on Windows) that suddenly I saw this arrow notation ( >> ) in the start of some lines. When I oppend a javascript file, these appears to me. Do you know what are ...
mohamadi_arch's user avatar
1 vote
1 answer
514 views

How can I see a list of snippets in my Vim?

I installed vim-snippets, ultisnips and coc.nvim in my Vim (gVim on Windows). How can I see a list of snippets that I can use in my current open file? For example, when I'm editing a .js file, I want ...
mohamadi_arch's user avatar
0 votes
1 answer
46 views

readonly in gvim windows

I don't know what causes it, but in Windows i use GVim (portable GVim), and need to open some file (that already exist, Vim didn't created it), but it opens it in readonly mode. i need to use w! to ...
Happy Cakiey's user avatar
0 votes
1 answer
103 views

How can I open MDN link in coc.css popup?

Sorry for my English. I installed coc-nvim plugin in my vim (gvim in windows) after that I insert CocInstall coc-css command for css snippets. In this picture I highlighted MDN Reference. How can I ...
mohamadi_arch's user avatar
1 vote
1 answer
40 views

Move between buffers of a certain filetype

scenario: I have a bunch of programs that generate output, the programs and output are open in buffers and the programs are one filetype eg .r and the output is another filetype eg .txt I want to ...
neverdimed's user avatar
0 votes
2 answers
190 views

I am using Vim 7.4. I do not have admin privilege to update it. I want to use plugins as I cannot use plugin manager

I download Vim-plug but I am unable to use it. I have downloaded NERDTree in ~/.vim/pack/vendor/start/nerdtree. But when I give command :NERDTree in gVim editor it gives an error: Not an editor ...
verif_guy's user avatar
0 votes
1 answer
75 views

How do I disable access keys in gVim

I'm looking for a way to disable the access keys in gVim. For example, when I press alt+f, the "File" menu pops up. This is behavior that I want to remove, so I can use these keybinds for ...
Nimrod Weinberg's user avatar
0 votes
2 answers
3k views

How to select all text and delete in vi?

Is it possible to select all the text and delete it it in vi other than hitting backspace?
kraber's user avatar
  • 1
0 votes
1 answer
56 views

Some Normal mode mappings not working in vim9 anymore

I have the following in my configuration: nnoremap µ iii nnoremap ° ioo I'm using gvim, on Windows 10, using an azerty keyboard (so µ is <S-*> and ° is <S-)). The mappings work in vim8, but ...
Minh-Tâm TRAN's user avatar
1 vote
1 answer
153 views

Vim does not see single quotes

I want to use Vim (MacVim) to remove all single quotes from a file. I tried the following: :%s/'//g :%s/\'//g but in both cases, Vim returns: E486: Pattern not found: I get the same error when I ...
someguyinafloppyhat's user avatar
0 votes
1 answer
105 views

How can I make 'quickfixtextfunc' work with cfilter using a vim9's "def" function?

On Windows 10, using gvim, when editing a file like the following example: foo foobar baz As long as I use a function and not a def, I can do the following and Cfilter will work as expected: :...
Minh-Tâm TRAN's user avatar
0 votes
0 answers
44 views

^@ added when calling system in cmd.exe [duplicate]

Here is an excerpt of my vimrc let g:conda_activate = 'myenv' function Condaenv(env) return trim(system("conda activate ". a:env. " && call echo %CONDA_DEFAULT_ENV%")) ...
Barzi2001's user avatar
  • 640
2 votes
0 answers
215 views

Cannot set guifont or guifontwide to installed font

OS and desktop environment info: uname -a Linux debian 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux sudo dpkg -s lxde | grep Version Version: 11 sudo dpkg -s lxappearance | ...
newview's user avatar
  • 301
0 votes
1 answer
52 views

Key mapping across different Tabs

I have mapped F10 key to execute different programs (pdflatex, python) depending on the file extension. autocmd Filetype tex map <F10> :lcd %:p:h<CR> :bel ter pdflatex % <CR> autocmd ...
Salil S. Kulkarni's user avatar
0 votes
0 answers
30 views

directly copying from `vim` to `mariadb` shell causing error

I have a file https://0x0.st/oYoB.com_5zfu After opening it with vim I tried to copy some portion of code and paste it in the mariadb shell. But it looked like mariadb was giving error. MariaDB [...
altair00's user avatar
1 vote
0 answers
53 views

How to solve vim editing data files on multiple locations (eg: different devices)?

Sorry for my lousy title, feel free to improve it because i am not good at describing my issue. I don't know how to use 1 sentence to describe my problem, hence lengthy text below. sorry. I uses vim ...
andrew_ysk's user avatar
1 vote
0 answers
124 views

Set fallback font in gvim

gVim provides an option, :h guifont, to set the font of the gui window. Although it accepts a comma-separated list of fonts, it selects the first available font. If a symbol doesn't exist in the ...
3N4N's user avatar
  • 5,774

1
2 3 4 5
10