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
1answer
173 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
21 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
32 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
25 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
21 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
36 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
63 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 ...
0
votes
0answers
31 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
39 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
50 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
34 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
167 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
79 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
53 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
25 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
274 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
50 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
72 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
32 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
43 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
44 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
39 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
86 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
47 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
73 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
46 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
35 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
429 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
31 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
130 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
302 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
44 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
292 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
57 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
368 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
71 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
100 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
0answers
138 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
74 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 ~/....
1
vote
1answer
41 views

How can I make gvim keyboard language-agnostic in command mode?

Sometimes I'm using GVim not only for coding, but also for typing texts in Russian language. I'm very annoyed that I have to switch my keyboard layout back to English each time when I return to ...
0
votes
0answers
119 views

Fold show first line of docstring, keeps other folds intact

Following this article, fold show first line set foldtext=getline(v:foldstart+1), it does but other folds in file look bad, see pics: When set foldtext=getline(v:foldstart+1) Without set foldtext=...
0
votes
1answer
65 views

Remove ~ in buffer at vim startup

When open vim or kill buffers to empty I encounter with ~ and I'd like to disable/remove it.
0
votes
2answers
583 views

How to hide horizontal line between windows [duplicate]

I set statusline= and fillchars=vert:\| and the result is for horizontal is here when I try :sp: When I try :vsp the reuslt here: I really like to tweak horizontal with fillchars but vim seems don't ...
0
votes
1answer
51 views

vim :make :cwindow, I need error length character limit larger than 1000

I am compiling a program with :make command, then I examine g++ errors using :cwindow. The problem is that the error produced by g++ is longer than 1000 characters and it is cut. Currently I have to ...
0
votes
1answer
86 views

Missing <c-q> when mapping Ex Command

I am using Vim 7.4 in Windows 7. I am trying to map F2 to the following ex-command, execute "normal ggf\<tab>"| execute "normal \<c-q>G$d"| %s/ \+//g using the following mapping command ...
0
votes
2answers
81 views

How do I debug normal/insert/cart mode shortcuts that don't behave as expected? [closed]

I am using exactly the same version of Vim (Gvim 8.0.1123) across all my Windows machines, and only have the following problem on one of them: Problem That I cannot use <c-d> in insert-mode, ...
0
votes
0answers
288 views

Change runtimepath of Gvim on Windows 10

This's kind of odd question but I can't change the runtimepath of gvim to comply the same manner like under linux (plugins put under .vim) I tried to append .vim at the begin of runtimepath like: set ...
2
votes
1answer
498 views

How can I highlight variable/arguments inside method/function in Python files?

An expansion of this question: How can I highlight all function names in Python files? i have a sample: src_file = replacement_file.replace(header_dir, source_dir) here i need to match variable/...