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
1answer
27 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
18 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 . /...
3
votes
1answer
47 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....
0
votes
0answers
52 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
21 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
32 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
48 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
0answers
38 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
37 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
21 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
24 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
87 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
23 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
29 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
38 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
42 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
29 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
29 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
23 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
70 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
56 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
11 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
63 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
33 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
76 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
221 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
39 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
95 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
vote
0answers
19 views

Anybody using gvim for Angular6+ and nodejs developement (MEAN stack)? [closed]

I want to move to vim for my angular7 development but typescript is not much friendly with vim and other libs such as ctags and syntax highlighting here is my vimrc file Any help??
4
votes
1answer
243 views

tell vim to add default extention to word under my cursor before opening file

Lets say I have text This is result file output_20DeC. Let's say my cursor is on o. When I use the command gf, it should open output_20Dec.txt file. So how do I tell vim to add a default extension to ...
2
votes
1answer
788 views

Gvim 8.1 on Windows 10 won't source $HOME\_vimrc

I have a $HOME\_vimrc present, but it doesn't show up in the output of :scriptnames. And when I run gvim -V, it reports: could not source "$HOME\_vimrc" The only thing in my $HOME\_vimrc is the ...
1
vote
1answer
31 views

Closing the “list of files in a directory” when having Vim to open the directory

In the following screenshot, I demonstrate the following operations that shall yield a "buffer" that cannot be closed. My guess is that the list of files/directories is actually not a buffer. My ...
0
votes
0answers
25 views

gvim window completely frozen

I have a problem with gvim on Fedora 30: when opening a file, the content is displayed, but then the window is never refreshed. Already tried a lot of different solutions, with no success: CTRL-L ...
2
votes
1answer
48 views

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 ...
3
votes
4answers
76 views

Vim search and replace “/” only from string between round bracket [duplicate]

I have string lets say count number of elecment when tra(XYixe0/en_in/old)='mid/2' rise='corse/2' I want to replace / from (XYixe0/en_in/old) to . My output string should look like count number of ...
2
votes
1answer
183 views

Plugins working in vi but not gvim

I am using a Windows 10, 64 bit machine, with gvim 8.1.1 installed (See screenshots below). I am using Vi version 8.1 which was installed as part of my git bash - version 4.4.23. I have never ...
2
votes
1answer
69 views

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" ...
1
vote
2answers
49 views

What control character is ^\ in the buffer in a file open in vim?

I found a whole bunch of green ^\ characters in the file I have open in vim... Any idea what control character they are? And how would I search for them in grep?
5
votes
1answer
621 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 ...
1
vote
2answers
195 views

I am running into problems while using Gpush command from vim-fugitive plugin

I have recently started using the vim-fugitive plugin, and currently I am facing problem with the Gpush command. I tried :Gpush % which gives me errors in the quick fix window saying fatal: ...
0
votes
1answer
79 views

How can I look up the current/default guifont reliably?

I'm trying to configure my guifont and I'd like to see the current setting so I can e.g. keep the same font but change the size. Is there a way to check the current font that works reliably, even if ...
1
vote
0answers
41 views

gvim adds one extra pixel spacing after each character?

For some reason, gvim is adding one extra pixel of spacing after each character. It almost seems similar to this question, but in my case gvim does use the correct font. I compared the same font in ...
1
vote
1answer
259 views

Powerline font not working with airline in (g)vim on Windows 10

I'm trying to set up patched fonts from powerline/fonts with airline in gvim under Windows 10 64 bit. As you can see from the screenshot here: the characters from the font do show up, but the airline ...
1
vote
2answers
187 views

Gvim - Change window position horizontally

I want to create a command that will place my gvim window to a different "x" location on my screen while maintaining the "y" position. I do this in my _gvimrc by calling winpos 319 16 I want to ...
0
votes
0answers
36 views

Run project specific _vimrc in windows?

I'm attempted to duplicate this functionality in a windows environment running gvim 8.1 but it doesn't appear to pick up my changes. I've updated my $VIMRC\_vimrc with set exrc set secure and my ...
1
vote
0answers
49 views

Automatically saving on FocusLost sometimes stops working for a gvim window

In my ~/.vimrc I have at the moment: autocmd BufLeave,FocusLost * nested silent! wall Which most of the time works as I would like, however sometimes it seems saving simply stops working (for a ...
1
vote
1answer
71 views

Line mode command to delete from column X to end of line?

Using gvim on a file with 30K lines, I want to use ex mode to delete from column 130 to end of line, making each record no longer than 130 characters. I want to do this for the entire file. My macro ...
0
votes
1answer
79 views

custom snippet extender Ultisnips

Suppose I have a snippet: snippet prg !This is file : `!v expand('%:t:r')` ! Author= `!v expand($USER)` ! Started at: `date +%d.%m.%y` ! Last Modified : Sun 16 Jun 2019 12:30:58 IST ...
1
vote
3answers
403 views

Remove ^H from gvim

I am trying to direct data from manpage to gvim file but it's not properly formatted. Example: In manpage it is shown as NAME (bold) But in gvim its printed as N^HNA^HAM^HME^HE. Similarly for ...

1
2 3 4 5 6