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
0
votes
0answers
19 views

gVim wont open skeleton code when creating new file

I am currently using gVim to code in C++. I've recently made a skeleton file that includes imports, macros, etc., so that every time I make a new .cpp file it automatically adds the skeleton to it. To ...
0
votes
0answers
22 views

How to find and edit the setting of vim in windows

I have installed vim in windows. I am struggling hard to find the setting of vim where I can do the changes and importing packages in vim. Any help would be really appreciated. Regards, Pankaj
1
vote
1answer
43 views

changing font size leaves white bars in gvim

I wanted an easy way to resize the font in gvim (GTK), so I found this post: Quickly switch between fonts at runtime I created the following bindings based on that post: let g:fc_list = [ \ ...
2
votes
2answers
44 views

Highlight Multiple Lines of Comments

I'm on Ubuntu 18.04, vim-gtk3 8.0. I'm trying to get gvim to highlight multiple lines of comment that starts with a particular word. For example, consider the word 'NOTE': // NOTE(Ryan): This would be ...
0
votes
1answer
47 views

Highlight Particular Words Within Comments

I'm on Ubuntu 18.04, vim-gtk3 8.0. I'm trying to get gvim to highlight particular words within a comment. For example, take the word 'NOTE'. In a '.c' file: // NOTE(Ryan): ... and a '.sh' file: # ...
0
votes
1answer
28 views

GVim Shows Python Support Error When Opening

Every time I open up gVim there is an error that says that Python is not supported. I have checked numerous websites and everything that I have tried does not seem to work. In my vimrc file, I have ...
1
vote
1answer
32 views

undercurl not visible to me in gvim on WIndows 10

I like to use undercurl to highlight spelling mistakes in Vim. I believe it does this by default. This works fine in MacOS and Linux but it isn't visible for gvim on Windows 10. Originally, I ...
0
votes
1answer
31 views

How to bind these keys to prevent recursive binding in Vim?

I have been trying to do :noremap j k and :noremap k j which works but instead of going up it goes slanted up and down. I want j to move up and k to move down which is opposite in vim. I also tried :...
1
vote
1answer
31 views

Tab does not work with vim for me [closed]

Problem statement :- Tab does not work with vim for me Description :- I am using vim-awesome for plugin in vim. Now the tab does not work. My expectation is pressing should result in tab being ...
2
votes
2answers
207 views

How can I change the colorscheme of the vim terminal buffer?

I use GVim with the gruvbox colorscheme. When I open a terminal inside vim with :term, the colors are different, it looks like another colorscheme is applied. The other terminals I use (urxvt and ...
0
votes
1answer
35 views

How to open pdf from local path with parameters using gf/gx like command?

I have a path name with page number in vim buffer and I want to open it using Sumatra PDF. d:\drivers\instruction.pdf -page 40 Instruction above works fine using command line - cmd.exe and it opens ...
1
vote
2answers
85 views

Is it possible to match vim and gvim colorschemes?

This was a nice little article that somewhat demystified vim colors to me. I downloaded and installed the Base2Tone vim colorschemes, and set the following in my ~/.vimrc: colorscheme ...
0
votes
1answer
34 views

Vim: How to enable hints in command bar [duplicate]

I have Vim in Ubuntu and also gVim in Windows. The point is that gVim displays hints in the command bar (command-line under the statusline) but Vim does not. I mean hints that appears in bottom right ...
1
vote
1answer
26 views

Cannot run basic Windows commands using :terminal

I have the GVim 8.1 compiled with +terminal flag. After I enter Vim via vim -u NONE, I try to execute simple command, like :terminal cd or :terminal dir just to check the output. Instead of the ...
2
votes
2answers
35 views

Vsplit in resized GUI Window in .vimrc

When I'm in the GUI, I like to have a large-ish vim window: 161 columns, so I can :vsplit it into two 80 column windows (with 1 extra column for the gutter.) This works perfectly fine if I do it by ...
2
votes
1answer
32 views

Vim executing UltiSnips snippet every time I scroll the page

I inserted the 'datetime' snippet from vim-snippets/all.snippet right at the beginning of my document. The problem is that the time keeps on updating whenever I scroll, as if vim is redrawing the ...
0
votes
1answer
33 views

How to copy N words under cursor and to right of cursor?

How can I copy continue close current into buffer without getting into visual mode? That is, how to copy N words from cursor?
1
vote
0answers
23 views

Why does Gvim treat ansi escape codes differently than Vim in python code?

The following python code uses ansi escape sequences to clear the terminal screen and change the text color to red. It then prints "Hello from Vim." print ('\033c\033[31m Hello from Vim.') In Vim I ...
0
votes
1answer
30 views

gvim editor — E488 Trailing characters after search and replace questions

I have the following search and replace expression where I am trying to format a document in a single step using multiple commands separated by | :%s/\s\{6}...\d\d\s/ /g | %s/\(.*Inlet.*\|.*AIR.*\)/\...
0
votes
1answer
53 views

Warning:…Illegal mnemonic character; Could not convert X KEYSYM to a keycode?

Does anyone know how to prevent these annoying messages? bash$ gvim foo Warning: Name: subMenu Class: XmCascadeButton Illegal mnemonic character; Could not convert X KEYSYM to a keycode ...
3
votes
0answers
20 views

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) ...
0
votes
1answer
104 views

Can you use neovim in a gui like mvim or gvim? (Mac OS X)

Maybe a stupid question but is it possible to run neovim on a GUI like gvim or mvim? I need some GUI to do remote work within Filezilla Thanks
1
vote
1answer
26 views

Opening gvim in new tab (filezilla)

I want to open and edit files in FileZilla with gvim without opening a new window every time. I searched online and found this but it doesn't open in same gvim window. In Filetype associations . /...
4
votes
1answer
114 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....
1
vote
0answers
103 views

Is there any similar way in vim to get standard path like neovim stdpath function

In neovim, we can get default standard path via stdpath() function. I wonder if there is any way to do that in vim. below is the help doc about stdpath() in neovim: stdpath({what}) *...
0
votes
0answers
31 views

Key repeat quit working under MacVim?

Somehow Key Repeat (hold down key for repeat) (For Cursor Movement keys) just quit working under Mac Vim! (Has worked fine for years. Works fine in other apps, terminal app.) Did I hit a bad ...
2
votes
0answers
43 views

“Edit with existing Vim” - how does it work?

I have Vim 8.1.1 on Windows 7. I can click on the file with right mouse button, and there will be an option "Edit with Vim". Then, if I click another file, there will be two options: "Edit with Vim" ...
2
votes
0answers
76 views

Why does Gvim not see my X11 fonts?

After going blind from using Gvim with non-bitmapped fonts, I tried to narrow my question from the previous attempts (1) and (2) (with older attempts going back years). Specifically, I wanted to find ...
0
votes
1answer
59 views

Whats the benefit of using :term inside Vim compared to a separate terminal emulator app?

I am using iTerm2, which is working well for me. I've been using VIM for almost 2 years now, with MacVim. Then suddenly I became curious whether my coding experience will improve when I use terminal ...
1
vote
1answer
40 views

Choose Gvim font that maps pixel-to-pixel with display?

I recently bought a Windows 10 laptop, TravelMate P2410-G2-M. The resolution is set to the native physical resolution of the display. However, my Gvim text displays with some pixel columns/rows ...
1
vote
1answer
28 views

parsing / lexing scriptout log file from gvim -w

I've been running gvim -w /dev/shm/vim_keystrokes for some time, to collect keystrokes for later analysis. But now I'm looking for some guidance on how to make sense of the binary log file. Here's a ...
0
votes
0answers
27 views

select font for tab headers in gvim

I wonder whether there is a way in gvim to select the font used for buffer names in tab headings (after using :tabnew). I know the guifont option, but this applies to the buffer editing area. ...
0
votes
1answer
93 views

How do you open a file from commandline on gvim (neovim)?

I'm trying to open a file in gvim from the command line. This works: vim test.txt This does not: gvim test.txt For some reason gvim is not loading the file from command line. This is happening ...
1
vote
1answer
30 views

terminal api not working on gvim

vim 8 support terminal, and has a api to let command in terminal to communicate back to vim. For example: In vim, define function like " .vimrc let g:cnt = get(g:, 'cnt', 0) func! ...
2
votes
1answer
36 views

Saving setting to buffer

Is there a way to save the value of a setting to a buffer or a file? For example, when I type :set guifont It displays the setting I want to use but as soon as I start typing in the buffer it ...
2
votes
1answer
39 views

How to change in gvim GTK file browser the default file mask wildcard (glob)?

In gvim the command :browse confirm e launches a GTK file browser. The default file mask in this window depends on the filetype from which the browse window is invoked. I would like to change that ...
0
votes
2answers
46 views

Unmap accented characters

If I press Alto, it prints ï. I would prefer it not do anything. I tried these: :unmap <M-o> :iunmap <M-o> but it just says: E31: No such mapping From the comments, I have also tried ...
2
votes
0answers
40 views

gVim very slow start with guioptions-=T

I'm experiencing the problem with gvim taking ~20 secs to start when I have guioptions-=T in my .vimrc. Tried both version 8.1.0875 and 8.2.0121 I found this bug report which is now closed, but the ...
2
votes
1answer
42 views

How do I run gVim in a single instance per desktop workspace on linux?

I like running gVim in a single instance, i.e. a single gui window with separate tabs for each file I'm editing. I also run a linux desktop environment that has multiple desktop workspaces. E.g. ...
2
votes
1answer
26 views

Select upto a given delimeter across multiple lines

I have a json file and I want to change keys of json file. For example { name: "John", age: 31, city:"New York", school:"xyz" } I want to make all keys uppercase. How can I do this with min ...
1
vote
1answer
24 views

Machine-specific gvim customization file tree with otherwise minimal customization?

I upgraded my Cygwin X-windows after 5 years. I found that there is no more /usr/share/vim/vimfiles, so I copied my files from the after, colors, plugin, spell, and syntax folders directly into the ...
1
vote
1answer
153 views

Where does gvim find font options for its `guifont` pick list?

In gvim, :set guifont=* brings up a GUI panel from which one can choose a font family, weight, slant, and size. Where does gvim find these fonts? I'm using Cygwin's X-windows. While the scheme for ...
1
vote
0answers
148 views

gvim: List all options for guifont as text?

I know that I can use the GUI to navigate to the panel for setting guifont, and I can also issue :set guifont=*. Is there a way to list all options as text? I would like to capture them in a ...
0
votes
0answers
13 views

F3 prints [R in fzf prompt in Gvim in Windows10

So this is my env: Windows 10 fzf (installed via choco), and customized so F3 toggles preview gvim 8.1 Now...this does not work, I get the fzf prompt, but when I hit F3 to preview one file, I get [R ...
2
votes
1answer
86 views

How to enable part of my vimrc to only apply in gVim?

I run Vim using both gVim and in terminal. Basically, I want to enable a certain colorscheme in my vimrc but only when in gVim, as the theme looks terrible in terminal. How do I accomplish this?
4
votes
0answers
42 views

gvim: Make the mouse follow CTRL-W_j and CTRL-W_k

I run a Linux/GNOME laptop where the focus follows the mouse, and I have vim's mousefocus feature turned on, so the selected viewport follows the mouse, too. But when I try to switch viewports using ...
2
votes
1answer
143 views

How to handle a drag & drop event in vim in order to paste the file path instead of opening it

I would like to handle a drag & drop event of a file into gvim in order to insert the file name into the buffer I am dropping it. This should happen only when such file is an image, e.g. .png, or ....
2
votes
1answer
568 views

Settings for the font in .vimrc are not working

Following the answers in I have tried many varieties of setting the font size and face in ~/.vimrc . None of them have any effect set guifont=Menlo:h12 set guifont=Monaco:h12 set guifont=Menlo\ ...
0
votes
0answers
45 views

Some of unicode characters doesn't work in vim

I am using vim8 on windows 7. The problem is what whenever I try to paste a unicode character from somewhere else it doesn't work instead it shows. For example when I try to enter ⇛ It shows a ...
3
votes
1answer
157 views

Discover which fallback font was used in gvim

My &guifont is set using let &guifont="SauceCodePro NF 11,Source code pro 11". Calling set guifont? returns the full option, guifont=SauceCodePro NF 11,Source code pro 11. Is there a way to ...

1
2 3 4 5
7