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
1answer
23 views

how to tabdo all the visible buffers without changing the current tab?

My init.vim code: cd ~/Documents/cp nnoremap <leader>lcd :tabdo lcd %:p:h<cr> suppose, i have 4 tabs opened in nvim via using nvim -p A.cpp B.cpp C.cpp D.cpp A.cpp B.cpp C.cpp D.cpp ...
0
votes
1answer
49 views

smart single or multiple character deletion of x

I want vim to ignore whitespace copy Default cut x will work same but When i cut one whitespace character or a visual block of whitespaces with x, vim register won't copy like this thread, Vim ...
-1
votes
0answers
23 views

To show in vim, which lines of working file are changed on disk

related to this thread, How can vim tell me which buffer is changed on disk among multiple buffers? My vimrc code set autoread autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | ...
2
votes
4answers
67 views

How to open current directory in File Explorer by vim?

The problem is solved My purpose is that: I use vim to edit my m-file and debug it in Matlab. There is no easy-to-use interface plugin between vim and Matlab in Win10. So I just edit m-file in vim ...
0
votes
0answers
18 views

how can i define g:errorMessageString as a List?

related to this thread Multiple error messages in vim message history How can i define g:errorMessageString as a List? Can anyone help me fix this? i am using this code in my vimrc but i don't know ...
0
votes
0answers
29 views

How can vim show multiple files are changed on disk?

How can vim tell me which buffer is changed on disk among multiple buffers? related to this thread, @b-layer helped me my current vimrc code: set autoread autocmd FocusGained,BufEnter,CursorHold,...
0
votes
1answer
23 views

How can vim tell me which buffer is changed on disk among multiple buffers?

I am using this code in my vimrc if a file is changed outside vim, it shows File changed on disk. Buffer reloaded. set autoread autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' |...
0
votes
1answer
16 views

Replacement of characters gives ^@ when replaced with newline but not newline [duplicate]

Why does replacement of something by using :%s/,/\n/gc in vim gives me ^@ instead of giving me newline. Sed replacement works perfectly sed s/,/'\n'/g. Any idea how to do sed thingy in Vim and save ...
0
votes
0answers
24 views

should i use getcwd(-1) or getcwd(-1, -1) in neovim?

related to this vi.stackexchange post How do you go back to your to global current directory after inheriting an lcd what should i use in my neovim? @mass @elliottcable
0
votes
0answers
31 views

How can I make this comment script work for certain filetypes?

I got this code from voyeg3r's gist @d-ben-knoble helped me add a feature I wanted in this QA. Now I want this code to support commenting out certain filetypes like conf, mail, tex and so on. My ...
0
votes
1answer
44 views

How can I change this comment plugin to work at the start of the line?

I got this from voyeg3r's gist He and @dave-kennedy made it 3 years ago. I am here because I couldn't contact them Can someone help me add a feature such that this vimscript code puts comment out ...
0
votes
0answers
18 views

Font size NOT changing through .vimrc but can inside vim

I can change the font size with set guifont=FixedsysTTF Monospace:h13 inside Vim and works perfectly. However when I put this inside ~/.vimrc it stays the same font size no matter what size I set it ...
0
votes
2answers
29 views

Replacing end of path in a file (vi)

With vi: I have a file with hundreds of these type of lines below. icpu_subsystem/i_v_top/i_jpeg_unit/ijpeg_dp/dp_p_rf_64x14_C_goal/U833462/A2 \ icpu_subsystem/i_v_top_ebd/i_jpeg_unit/ijpeg_dp/U121/A \...
0
votes
1answer
32 views

Mapping <Shift>-Insert to paste in gVim search field

In gVim (not terminal Vim), I want to be able to paste from <Shift>-Insert (a.k.a. C-V) into the text input field of a search. I.e. when I press "/", and go into search mode, I want ...
1
vote
0answers
24 views

How to show where the word is found when using “auto complete” if it's “The only match”

When I type some letters and hit CTRL+P, vim shows a list of possible words that may complete my letters. On the left of the list, it shows the completed word. And on the right of the list, it shows ...
0
votes
0answers
15 views

vim colorscheme not apply clearly [duplicate]

I apply colorscheme by writing in _vimrc file, but colors are working Partially. I brought source code of colorscheme from code-dark using Plugin Vundle. For explanation, upload the pictures. First ...
1
vote
0answers
50 views

colorcheme in vim is partially working. how can I apply the theme successfully?

Thank you for all yours advise that for help to improve my question. I'm not find yet how to resolve this problem in here. I'm really appreciate If you left the link about answer of this problem. ...
0
votes
0answers
31 views

Just installed GVim 8.2 but don't see the File, Edit, etc. menu items at the top of the window

Newbie here, sorry. I just installed GVim 8.2 on Windows 10 but I was expecting to see the familiar menu items at the top: File, Edit, etc. when I open GVim or edit a file. I have seen them when ...
1
vote
0answers
46 views

Getting the half of a glyph

while trying to add a unicode font, I am getting the half of the font, like in line 239 and 240 in the screenshot: I have, in my vimrc: set history=700 " How many line Vim ...
0
votes
1answer
21 views

Syntax Match PLSQL Label

A PLSQL Label uses this syntax <<LABEL_NAME>> How can I highlight everything inside and including the opening and closing angle braces? I've tried the following: syn match PLS_label "...
1
vote
0answers
41 views

gvim vs. xterm: what's wrong with my guifont?

The 10x20 is the (alias for) font I use with xterm -- and I like it. Both for shell-commands and vi/vim. Yet, when I use the :set guifont=10x20, I get "w i d e l y" spaced characters for ...
2
votes
1answer
92 views

Obscure Vim feature: +footer?

Inspecting some of Vim's features listed by vim --version I have noticed some obscure ones, for example, balloon_eval, balloon_eval_term and footer. There is an example in the documentation to test ...
0
votes
0answers
24 views

Calculate winpos arguments depending on screen/font sizes & lines option?

I am using Cygwin's X-windows and Gvim. I have a command that docks a Gvim window to the right side of my Windows 10 desktop so that I can take notes during video meetings, which seem to be the norm ...
0
votes
0answers
80 views

Adding a nasm syntax file to vim runtime directory doesn't work

I am trying to learn a bit about x86 assembly and Vim didn't have a syntax highlighter installed for it. I downloaded this One from github and placed it in the ~/.vim/after/syntax/ directory but this ...
1
vote
0answers
37 views

gvim 8.2 windows10 _gvimrc location

I am using gvim. I have checked the location of the RUNTIMEFILE with :echo $RUNTIMEFILE and found that is is located in c:\Programme\vim\vim82. The file _gvimrc is there indeed. However, I do not have ...
0
votes
0answers
111 views

Suppress warning pop-up

I'm on Windows using gVim, Vim version: 8.2.2003. I get a warning pop-up with the following error message: Some language features are not available. To access all features, enable [strictTemplates](...
0
votes
1answer
51 views

How to enable right click mouse in gvim?

I can use right click mouse in vim. It can't be used in my gvim. How to enable right click mouse in gvim?
0
votes
1answer
61 views

Gvim loads incorrect colorscheme unless I run the command again

In my ~/.vimrc file, I have my colors set up like this: " Access colors present in 256 colorspace let base16colorspace=256 " Vim colorscheme colorscheme default " Lightline ...
1
vote
1answer
66 views

grep in my specific dictionary

I often need to make a case-insensitive search of the current word (under cursor) in a dictionary file which has a simple txt format, one entry per line. One possible solution is to record a macro in ...
1
vote
1answer
169 views

What is the difference between signed vim and unsigned vim?

On the vim.org download page, there's an option to download a "signed" version of vim for windows (https://www.vim.org/download.php). What is the difference between using one of the "...
0
votes
1answer
28 views

Matlab syntax highlight: Avoid “reverse video” for “%%” at start of line

I am using gVim 8.2 from Cygwin. The synax highlighting recognizes code lines starting with "%%" at columns 1 and 2 show the text black characters on orange background. It is not ...
0
votes
0answers
21 views

Passing command to shell with “&” operator fails to open app, ubuntu 20.04

Hi I open files in the same folder the current file in the buffer in a couple of GUI apps (inkscape and libreoffice calc) on a regular basis from within Gvim as part of my workflow . Inkscape is the ...
0
votes
1answer
42 views

Can't use the usual !!foo in vim // gvim on Windows 10 - missing tmp files

I'm running vim // gvim 8.2 (fresh off of vim.org, and was before---just re-installed to do so as administrator, per instructions I'd missed before). I've been getting this since getting this Windows ...
3
votes
1answer
50 views

GUI support will not compile in latest from github

I'm using CentOS 7.5. I just did a git pull in my clone of the vim repo to the latest: last tag v8.2.2340. I'm trying to compile. No matter what I do, it will not compile for the GUI (which it's ...
0
votes
1answer
54 views

Sometimes gvim doesn't show character typed immediately

I do not know what the reason is and the rhyme isn't predictable either. Occasionally, as I'm using gvim, the character I type doesn't show for "a bit" (when this occurs, maybe ~1-2 seconds)...
0
votes
0answers
61 views

Eye torturing colors in Vim/GVim terminal

I am using GVim but this happens in terminal Vim too. I use the Gruvbox theme. Whenever I start the terminal using :term, I see too blue colors when I change the directory within the shell. The ...
2
votes
3answers
71 views

GVim keeps opening on the wrong workspace

I'm using KDE 5 with multiple desktops (in a 3x4 grid) and I regularly open Vim from the command line, e.g. with gvim file.txt The problem is when I do this, GVim often appears on a different desktop ...
1
vote
1answer
89 views

vim-dadbod with Azure sql uses SQLCMD with quotes that break it

Greetings Vim Experts! I'm using gVim on windows 10, and installing the plugin vim-dadbod to work with Azure SQL (SQL Server). I believe the plugin is installed correctly as I see the connection ...
0
votes
0answers
73 views

Highlighting the matching pair of a character changes the foreground color of Cursor

I'm using Vim 8.2 on Fedora 32. I have the following lines in ~/.vimrc for highlighting the Cursor, lCursor, CursorLine, and MatchParen highlight groups: highlight Cursor guibg=Green guifg=Black ...
0
votes
1answer
382 views

Gvim E370: cannot load library python36.dll with installed Python 3.8

I get often error E370: cannot load library python36.dll while using different plugins like: Fugitive.vim. I have Python 3.8 install with proper PATH. Is it possible to force Gvim to use python38.dll ...
0
votes
0answers
15 views

Issue Launching Gvim on Windows

I installed the Windows distribution of GVim and then installed Python3.9. I now get the following error message when trying to launch GVim, and have no idea how to fix it. I've tried changing my ...
-1
votes
2answers
108 views

Get GUI name for different settings in neovim

I am deciding between using either goneovim vs neovide, both on windows, but each uses the font height differently, so I a wanted to make something like: if has(goneovim) "goneovim specific ...
0
votes
1answer
39 views

Unwanted cascading indentation [duplicate]

I am struggling to regain control of indentation for certain filetypes, particularly when pasting code. I end up with what I call "cascading indentation" which is nearly unreadable. I've run ...
1
vote
0answers
155 views

Building vim with GTK on ubuntu

I am interested in building vim from source. The configure script is not detecting that I have gtk3 (dev) installed, and the only gui vim it builds is Athena. The non-gui portion of vim builds OK. I ...
0
votes
0answers
48 views

Why session in Vim did not save buffer from other folder rather than ~?

I use gVim on windows and save my current working files to session. However, when openning old session, it did not load files from other folder except home folder ~ (where I store my _vimrc file). My ...
2
votes
1answer
78 views

How to have Gvim 8.2 work with windows files containing a Unicode colon

Gvim 8.2 displays "Can't open file for writing" with a windows files that have a Unicode colon in the file name. Notepad, Wordpad, LibreOffice all work.
2
votes
1answer
111 views

A problem when use ALE for syntax checking and gvim for vivado's editor

VIM version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 14 2020 22:03:16) OS information: Microsoft Windows 10 Professional version 2004 (OS Version: 10.0.19041) Problem Description: I use gvim ...
0
votes
1answer
591 views

How to make Vifm use Neovim to open files?

I have both GVim and Neovim installed. When I open a file in Vifm, it is opened in GVim and not in Neovim. How to make Neovim the default editor for Vifm?
1
vote
0answers
36 views

How to get gVim to respect the aero snap keyboard shortcuts, ie Win+Left, Win+Up, etc

Is there a way to get gVim on Windows 10 to respond to the Windows aero "snap" shortcuts that move the window the left, right, maximize, minimize? Ie, Win+Left, Win+Right, Win+Down, Win+Up. ...
3
votes
1answer
50 views

How can I make a new line in my _vimrc after using the normal i command?

I'm very new to Vim and I have some ASCII art in my _vimrc. I've inserted it there using normal i, but it doesn't display properly, because the normal i commands don't have a line break at the end. I'...

1
2 3 4 5
8