Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
34 views

Cursor change when GVIM lost focus

In GVIM I use vertical thin line as my cursor by adding following line to my .gvimrc set guicursor=a:ver13-Cursor This works perfectly as long as window remained focused. As soon as GVIM window lost ...
1
vote
1answer
26 views

gVim: How to prevent horizonal scrollbar from resetting when scrolling vertically?

I am quite new to Vim and am trying to configure gVim with some of the behaviour that I like from notepad++. I disabled text wrapping with :set nowrap, then added the horizontal scrollbar with :set ...
0
votes
0answers
42 views

Feature comparison: gvim, onivim, neovim-{gtk,qt} [closed]

I run Linux and am trying to decide which GUI version of neovim to use: gvim, onivim, neovim-gtk or neovim-qt. What features and annoyances are: Common Unique to each
0
votes
0answers
28 views

How to make Gvim run output shell commands inside split/inner terminal

Sometimes Gvim uses cmd.exe and terminal pop up or blinks in few miliseconds as a external window. How to force Gvim to use internal terminal in split? This behaviour causes anoying blinking or ...
0
votes
0answers
34 views

gvim and Linux - <C-c> not mapped, yet acts

gVim under Linux Ubuntu 18.04 LTS Bionic Beaver seams to have <C-c> (Ctrl-C) mapped to cancel the visual selection, despite not being mapped at all. :map <C-c> No mapping found To ...
0
votes
1answer
66 views

Sharing vim commands history across different users and computers

I have configured .dotfiles. Eg. see here https://wiki.archlinux.org/index.php/Dotfiles So now I can do dgit push or dgit pull on whichever computer I want, and I have all my config files (including ....
0
votes
1answer
38 views

Indentation command `gg=G` for 'compressed' HTML doesn't unfold tags

Sometimes I copy 'compressed' HTML from TEXTAREA an I get code for ex. like this: <html><body><h1>header1</h1><p></p> <p></p> <div><p></...
3
votes
0answers
42 views

Why are Vim 8 :term colours with gvim different from those in plain vim :term or bash?

Vim 8 :term colours in gvim happen to be different from those seen in plain vim :term or bash. How come? How does one obtain the same bash colours in gvim? EDIT: I have been reading a bit more about ...
0
votes
1answer
17 views

How to map <A-h> without opening gvim help?

I would like to create a custom mapping for the <A-h>, i.e. Alt+h key combination. nnoremap <silent> <A-h> … However unlike <A-l>, this particular key combination opens the ...
1
vote
1answer
207 views

Syntax highlight works for gvim but not for terminal vim

I am new to vim and I want to code in vim. I have installed the necessary plugins for syntax highlighting JSX in TypeScript and everything works fine for GUI version of Vim but not for terminal-based ...
2
votes
0answers
26 views

gvim gnome hides command prompt

This is not firmly reproducible but when I run ctrl+wv to create a vertical split window, I sometimes lose visibility to the colon command prompt. Command prompt still works invisibly. Sometimes I can ...
1
vote
1answer
53 views

opening powershell from inside vim

I want to run powershell from vim and I have achieved it using the following mapping: map <leader>cd :cd %:p:h<cr>:silent !powershell<cr> The problem is that I can't do anything ...
0
votes
0answers
28 views

How to fix font being cut at the end of he line?

In Gvim the font I'm using is sometimes being cut (not fully rendered on the right) at the end of the line, like pictured below (letter "d" is having top bar not rendered): I'm using Inconsolata font ...
0
votes
0answers
35 views

Why gvim can't work with command: p4 client?

P4EDITOR is set to gvim in .p4enviro. When run command p4 client in terminal, it will pop an empty tmp file. But if change editor config to P4EDITOR=vim, it works fine. How to fix this?
0
votes
1answer
24 views

Comment character is not auto-indented in Bash and Python scripts

The cursor is on line 20. After pressing o the cursor (here depicted with a |) is placed below the e of ext as expected: 18 # set default extension 19 if [ -z "$2" ]; then 20 ext='pdf' | 21 ...
0
votes
2answers
53 views

Run command to disable a plugin in modeline

System: gvim 8.1 1-116 / windows10 A file that I'd like to use modeline (enabled): # vim: ft=python but disable ale plugin that will trigger on save - the file contains some python codes. Command ...
0
votes
1answer
64 views

how to set filetype after session restored with vim-session plugin

I used exvim as session manager, it uses a project file with extension .exvim. The session is auto-loaded when double click the .exvim, and auto-saved on exit. But there're bugs and the dev is ...
1
vote
1answer
72 views

Command line messages disappear in a flash

A while back I started using guioptions +=k to (from help guioptions): Keep the GUI window size when adding/removing a scrollbar, or toolbar, tabline, etc. Instead, the behavior is ...
1
vote
1answer
44 views

Make :f do the same thing as :find in Vim

I want to make :f do the same thing as :find so if I type :f abc.txt, it should run :find abc.txt. I tried to do something like cmap f find but that just make any f into find
1
vote
3answers
58 views

How to check if my .vim/buflist.txt file is empty or contains whitespace(s) in _vimrc

How to check if my .vim/buflist.txt file is empty or contains whitespace(s) in _vimrc of my gVim on Windows 10? I tried this: let BufferListFile = $HOME . "/.vim/buflist.txt" echo BufferListFile " ...
0
votes
2answers
54 views

Maximizing gVim on Windows 10 while also restoring all open files / tabs

On Windows 10, I installed gVim 8.1, so far I have made the following progress to make it usable for me: I made changes directly to _vimrc file, in spite I know there is also a gVim specific ...
0
votes
1answer
281 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 ...
0
votes
1answer
123 views

How to change gVim icon on Windows?

When open gvim, there is a small icon Vim in the title plus buffer name. I'd like to be able to hack anything about vim, including being able to change this gvim's icon. Is there a way to do that?
0
votes
2answers
56 views

Number of columns highlighted

As I am moving from Windows to Linux for my development machine, I have noticed a difference in vim between the Windows version and the Linux version. The windows will show you the number of ...
1
vote
0answers
29 views

How to auto save on *.coffee files when lose focus (in insert mode) then also back to normal mode

I'd like to lose focus when I'm in insert mode, to trigger auto-save on *.coffee buffers and also I need it to change mode from insert to normal mode to trigger Live compile feature of vim-coffee-...
0
votes
2answers
480 views

How to use WSL's bash shell as default terminal of gvim/windows 10?

gvim 8 1-26 / windows 10 I'd like to use Windows Subsystem Linux (WSL)'s bash shell as a gvim's terminal instead of cmd. So if I type in command potion of gvim: :!.\test.sh, it will echo result ...
0
votes
1answer
54 views

Vim (Spacevim); :!git push == permission denied (publickey)

I have operating system: Windows 7. Git bash works fine for me, and it uses the public key id_rsa.pub. I can run git commands fine through window's command prompt as well - and it too uses the public ...
1
vote
2answers
87 views

How to start gvim from command line with predefine pasting from clipboard

I know gvim -c [command] samaple.txt might run command predefined in command body. How to paste text from windows clipboard at the end of sample.txt file?
0
votes
0answers
33 views

Highlight block of injected code [duplicate]

windows 10/ gvim 1-1802. I use Javascript and there are sometimes blocks of HTML code that need to be inside a particular region that can be indicated by """, for example . I have a similar ...
0
votes
1answer
44 views

How to have a buffer takes 1/4 of a window and another takes all the rest?

I have two buffers, and would like one takes 1/4 of a window and other takes rest of the window. Normal behavior would be for example sp or vsp would split buffer to take 50/50 percent each, there ...
0
votes
0answers
72 views

Running commands when switching to gui mode?

I only recently realized that I have a vimx binary installed that allows me to switch from terminal mode to gui mode with the :gui command. This is nice but it has complicated my configuration ...
0
votes
1answer
40 views

Why is this map added using <Plug> not showing up?

From my .vimrc: nmap s <Plug>(easymotion-overwin-f) This sets up an nmap which invokes the EasyMotion plugin when I type ,s. And that nmap works just fine, and is indeed triggered by ,s. ...
1
vote
1answer
102 views

How to run/debug ahk (AutoHotScripts) scripts using Gvim, vim

How to execute ahk (AutoHotScripts) scripts using Gvim. Let say I have interpreter: "C:\Program Files\AutoHotkey\AutoHotkey.exe" /ErrorStdOut "d:\ahk\myscript.ahk" 2>"Syntax-Error Log.txt" While ...
1
vote
0answers
58 views

Does Windows GUI Vim perform font substitution for glyphs unavailable in current font?

MacVim specifically (if obliquely) mentions font substitution, and I've found evidence online that GTK2 gVim does too. But does Windows gvim? N.B. I'm already aware of the 'guifontwide' setting.
4
votes
2answers
80 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 ...
2
votes
1answer
47 views

Key repeat - removal of modifier

Using GVIM, I sometimes hold ctrl-d to page-down a lot, and I let go of ctrl first (unintentionally and momentarily) and cause a line to be deleted b/c an additional 'd' without 'ctrl' is sent. What ...
1
vote
0answers
38 views

Disable regex searching in specific windows

I usually have about 4 or 5 windows open in Vim. Currently - one of my files is very large(in size) - a CPU cache trace. Every time I search with "/", vim searches all windows before returning the ...
0
votes
1answer
1k views

Where to download gvim 8.0?

Tried google it, but I still can't figure our where to download gvim 8.0.
0
votes
0answers
34 views

gvim becomes not responding when I switch from another application back to it

Action Step: Open a network file with gvim and edit it. Leave gvim, use other application for a while, say more than ten minutes. Move back to gvim, gvim becomes not responding. (move back to gvim in ...
2
votes
1answer
143 views

How do I turn off undercurls in Vim-GUIs?

How do I globally turn off undercurls in Vim-GUIs (GVim & MacVim)?
1
vote
0answers
372 views

Unable to map ctrl-l

My _vimrc contains the following lines: set nocompatible source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin nmap <c-l> :w<CR> nmap <c-m> :w<CR> ...
0
votes
1answer
51 views

NERD Commenter: Why it choose — to comment a bash file?

One bash script is named without file extension, NERD Commenter works fine. Another bash script name is aaa.sa. NERD Commenter is using -- to comment a line instead of #. File syntax highlight is ...
0
votes
0answers
362 views

Blank line in the bottom of GVim

Whenever I have GVim open, there is a blank line (with the GUI's background color) in the bottom of the window. Also, when I maximize GVim there is also another one in the right side of the screen. I ...
1
vote
2answers
64 views

gvim Linux - GUI scroll without cursor shift

When we write code, we usually jump between different parts of the code (using the scrolling or the search functions). In this situations, on Linux, *vim shifts the cursor to the visible area. For ...
2
votes
1answer
397 views

Read-only (silent) select in Vim

When I select text in Vim using the mouse, the editor displays "SELECT" at the bottom of the window, like so: This always makes me uneasy, because I have found that the Select mode somehow changes ...
2
votes
0answers
75 views

Ctrl+Ins keybinding won't work in Vim, does in gVim? [duplicate]

I have the following in my .vimrc (I don't recall where I found the original): " Cut, Copy, Paste vnoremap <S-Del> "+x vnoremap <C-Insert> "+y If I use Shift+Cursor keys to ...
0
votes
2answers
115 views

Linux gvim - toggle/retain insert-select mode while Shift key is pressed

I noticed using evim that when I press Shift key plus any direction key (so <S-Up>, <S-Down> etc., the editor automatically switches to insert-select mode, letting me select the text block ...
0
votes
1answer
34 views

nmap seems to have a limit on text after a command eg sort i /pattern/

I am trying to define a map to define a key to sort a file based on a pattern, eg nmap <leader>so :sort i /ap\s\+<leader>/<cr> When I execute ,so the sort is limited to the first 6 ...
0
votes
1answer
185 views

Tweaking cursor gvim

I'd like to change the view of my current cursor as this pic: So how to have _ in cursor and how to change color of cursor? Thanks in advanced.
0
votes
0answers
81 views

gvim and vim in Linux - Same custom shortcuts for gvim and vim

I started using gvim very recently and I now that I set up my custom shortcuts, I would like to replicate some of them to use with vim. For example, from gvim, using the following command setup in ~/....