2022 Developer Survey is open! Take survey.

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

!v command UNIX - relation to Vi or vim [closed]

Whenever I type !v command in the UNIX terminal, in a particular directory, my vim editor opens with the file "hello.txt" which I have never created in that same directory or anywhere. What ...
user avatar
0 votes
0 answers
17 views

gVim HiDPI Problems on Icons (not font). Properties:Scaling Override : SYstem(enhanced) doesn't work

New PC with high DPI monitor. Entire VIM window came out very tiny. I was able to fix the tiny fonts via set guifont command in _gvimrc However the icons are still microscopic. I tried gvim.exe -> ...
user avatar
1 vote
1 answer
38 views

Error detected while processing BufRead Autocommands

I'm a new user and I have just installed GVim on my linux. I just have ~/.vimrc file and no .vim folder may be because I did not install any plugins. When I try to refresh (by :e) or reopen the ...
user avatar
  • 11
1 vote
0 answers
43 views

gVim ':terminal' accents don't work

I am using gVim in Xubuntu 20.04. My version is vim 8.2.4295. If I use a regular terminal, like xterm, and open Vim and then type ':terminal', I can use accents, e.g., íàê, etc. while in the vim-...
user avatar
  • 11
0 votes
0 answers
22 views

Can't compile gvim on Kubuntu 22.04

I'm trying to build the vim sources on the new Kubuntu 22.04 release. However Ubuntu has moved from X11 to Wayland, and if I include the --with-x flag I get the error could not configure X. If I ...
user avatar
  • 1
2 votes
2 answers
33 views

minlines in gvimrc

I notice when I work with larger Mardown files, the syntax highlighting is broken if I skip around the page. This seems to fix the issue: syntax sync minlines=999 but if I put it into my _gvimrc, it ...
user avatar
  • 746
0 votes
0 answers
14 views

Accessing python dataframe columns in vim editor upon pressure of a key

I have the following situation import pandas as pd T = read_csv("MyFile") I would like to have a list of the dataframe T columns when I type T[" and then I hit a key like <tab> ...
user avatar
  • 121
0 votes
0 answers
27 views

Getting/Setting Terminal Keycode in Win32 gVim

I wanted a binding for <C-;> to <End>, but it looks like that key either doesn't exist or does, but falls outside of the range of keycodes that Vim handles internally, or something. So, on ...
user avatar
  • 101
0 votes
1 answer
34 views

Backslashes being removed from file paths when changing terminal to wsl on Windows gvim

On gvim for Windows I wanted to change the termial from cmd to wsl, so I added this to my gvimrc. which I got from an answer on another StackExchange site: " Use WSL as terminal on Windows if has(...
user avatar
  • 105
1 vote
1 answer
63 views

In a vimrc, how do you preload a register with a string containing Special characters, like a newline?

In a vimrc file I want to preload register C with a string I regularly need when coding. The string has a newline in it but no success in getting it to work properly. Here is an example vimrc snippet ...
user avatar
0 votes
0 answers
42 views

the font changes when I change font size in gVim

I am sorry if this is a dumb question, I am a beginner in vim. I am trying to change my font size in gvim, I tried using set guifont=*, but only two sizes appears on the list 7 and 11 , and typing any ...
user avatar
0 votes
1 answer
50 views

How do I use the \+ quantifier?

Running Windows 10 (Home) and VIM - Vi IMproved 8.1 (2018 May 18, compiled May 18 2018 18:36:07) MS-Windows 32-bit GUI version with OLE support Included patches: 1 Compiled by mool@tororo. I have ...
user avatar
1 vote
1 answer
42 views

Certain LaTeX not displayed in GVim

I use conceal and write some LaTeX files in the GVim 8.2 editor on windows. The conceal works fine most of the time but it is unable to display certain characters like ∈ and ⊆. It shows a box with a ...
user avatar
  • 113
0 votes
1 answer
52 views

How to check key state Down/Up/Hold in Gvim?

A while ago, I saw this answer, and thought if this was possible in Gvim somehow. I'm only curious in knowing how to know the key state of a particular key, or at least the 3 main ones: Down, Up, and ...
user avatar
0 votes
1 answer
24 views

How to know current setting for guicursor shape on Gvim?

I know how to change cursor's shape when using Gvim: set guicursor=**options_here** The problem is, it seems like guicursor cannot be echoed as far as I know, even though setting it as above works: ...
user avatar
1 vote
0 answers
29 views

gvim copy/paste shortcuts like in terminal : ctrl+shift+v / c

In terminal I use: Ctrl+Shift+c and Ctrl+Shift+v to copy & paste. I would like Ctrl+c, Ctrl+v in gVim to have standard Vim behaviour. How to configure gVim, so Ctrl+Shift+c and Ctrl+Shift+v become ...
user avatar
0 votes
1 answer
39 views

Why I can't apply colorscheme for GUI vim in Windows?

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 2 2021 18:02:30) MS-Windows 32-bit console version Included patches: 1-2824 Compiled by mool@tororo Huge version without GUI. Features included (+) ...
user avatar
0 votes
1 answer
30 views

Delete repeating string in gvim

I have following text file lbist_init_SAfull_pll_updt lbist_init_SAfull_pll_updt lbist_init_SAfull_pll_updt lbist_init_FTMfull_pll_updt lbist_init_FTMfull_pll_updt lbist_init_FTMfull_pll_updt ...
user avatar
0 votes
1 answer
51 views

How do I highlight #-comments in UPF files?

I have a file with the extension *.upf in which the # is not highlighted. I use # for comments. :syntax on also doesn't seem to work. The issue here is I have a file (*.upf) which is generated by ...
user avatar
0 votes
1 answer
51 views

vim. How do you replace 'x' with 'y' and 'y' with 'x'? [duplicate]

I don't want to do this manually, and I'm sure there is a way for vim to do it. I probably am not googling the correct question to find the result I want, but here is what I want to do. I have this ...
user avatar
1 vote
0 answers
37 views

Vimwiki: My vimwiki index file was deleted by accident. Is there a way to recreate it?

My vimwiki index file was deleted by accident. Is there a way to recreate it? I have all the *.wiki files that have the content. I was hoping there was a command to generate an index from capturing ...
user avatar
  • 11
1 vote
0 answers
21 views

Why `highlight X ...` from `.vimrc` does not work in gVim (but works in VIM) and I have to type it again during session?

For following snippet of code, to see what was highlighted I need to run :highlight LineHighlight ctermbg=darkgray guibg=drakgray after running vim session, and then rest of snippet works (i.e. loads ...
user avatar
0 votes
1 answer
28 views

How to Check if evim.vim loaded instead of default.vim to change Window title

Hello I intend to change title of vim/gvim window only if vim -y/easy is started. I know that evim.vim is loaded, but If I change the titl using evim.vim , and I upgrade the vim, I will lost my change....
user avatar
1 vote
1 answer
85 views

gvim: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying

I use Cygwin's X-windows. For Gvim (not Vim) I've gotten warnings similar to the following for years: ** (gvim:432): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error....
user avatar
0 votes
2 answers
49 views

How can I suppress a CMD terminal window when running an external command in gVim?

Running a python script from gVim on Windows keeps popping up a terminal window (cmd), even when adding the silent parameter to the command: execute 'silent !python script.py'. Basically the script ...
user avatar
0 votes
2 answers
67 views

g[lobal] with a s[ubstitution]

I would like to add a dot after the first number in a line. I tried using the command below. :g/\v^\d/exe "norm!:s/\v(\d)/\1\./^M" The command above does not work. I recorded the macro @q=':...
user avatar
  • 1
0 votes
1 answer
80 views

Why is my $HOME variable set to C:\Windows\system32 when I run vim as a different user and what can I do about it?

I've created another domain user in Windows and I'm trying to run gvim from it. I've created a %USERPROFILE%\_vimrc but when I start gvim and check :echo $HOME it's set to C:\Windows\system32. I'd ...
user avatar
  • 3,081
0 votes
0 answers
27 views

Trouble running Ex commands after normal mode commands in a macro

I have the following macro: ggdG"+p :try|%s/\V${NodeName}/${N=SwisEntity;M=DisplayName}/|catch||endtry :try|%s/\V${IP}/${N=SwisEntity;M=IP_Address}/|catch||endtry :try|%s/\V${IP_Address}/${N=...
user avatar
0 votes
0 answers
40 views

How to change cursor type when runing :bo terminal powershell?

I prepared a .bat file with only two lines @echo off vim -c "bo terminal powershell ipython" but the cursor that I have in the powershell is the Legacy Style whereas I want the Underscore. ...
user avatar
  • 121
0 votes
0 answers
34 views

How can i get visualize line indent every time i use tab or go to new line

I set set listchars=tab:\│\ set list to my vimrc and it shows like below But when I go to another file it doesn't have a vertical line indent. It just affected 1 file, I have no idea about this. ...
user avatar
2 votes
1 answer
148 views

How to open a file in the last active gvim instance

I recently discovered -p and --remote-tab. Since I edit loads of files at the same time, sometimes with over 50 gvim instances open (and I am not a fan of buffers), I could use a bit of decluttering. ...
user avatar
1 vote
2 answers
68 views

choose template option for newfiles in vim

I have different templates in this directory ~/Documents/Library/ like: Template.cpp, normal.cpp, advanced.cpp normally i use this autocmd BufNewFile *.cpp 0r ~/Documents/Library/Template.cpp I want ...
user avatar
  • 111
0 votes
1 answer
35 views

Dump output with command line in vim with placeholder

I use :enew|pu=execute('scriptnames') for dumping output into a buffer. How do I write a mapping with this command line? For example, I press <F6> and it auto write the command line and jump to ...
user avatar
0 votes
1 answer
86 views

gvim 8.2 on Windows 10 - Right Click Taskbar Icon - Recent Files won't open files with .sql extension

I'm having a problem opening certain files (file extensions .sql, .ora) from gvim Version 8.2 using the Windows taskbar icon recent files list. I have associated the .sql file extension with gvim. No ...
user avatar
1 vote
0 answers
30 views

Open file with path over 260 signs length in WIndows

Is there any way to open file with Gvim under Windows 10 from path over 260 signs length with out mapping the path to network drive?
user avatar
0 votes
1 answer
47 views

Why vim creates an extra last line when importing a template?

My init.vim code: autocmd BufNewFile *.cpp 0r C:\Users\User\Desktop\cp\Template.cpp When i create a .cpp file, Template.cpp code is imported in that cpp file. upto this point, everything is fine. ...
user avatar
  • 111
0 votes
1 answer
35 views

How do I make the statusline selectable in gvim/macvim?

With terminal vim I can just double click the statusline and select the filename, which is very handy. In gvim or macvim clicking the statusline prompts me to resize the active window, not very useful....
user avatar
  • 103
1 vote
1 answer
102 views

Setting 'viewdir' does not work with :mkview

I'm trying to use :mkview with 'viewdir'. I set 'viewdir' as the help page said: set viewdir='C:/Users/MyPC/vimfiles/view' and made sure that C:/Users/MyPc/vimfiles/view exists, but I still get error ...
user avatar
1 vote
0 answers
13 views

What is gVim render stack?

I would like to know which technology/ies are used to display gVim windows and fonts on graphical environments (Windows, Mac, Linux and BSD). Thanks in advance
user avatar
  • 111
1 vote
0 answers
202 views

What Neovim GUIs have GUI scrollbars as described in vim under :h gui-scrollbars?

TL;DR I am looking for a Neovim GUI with GUI scrollbars as described in vim under :h gui-scrollbars (accessed on 2021-08-21). What GUI Vim scrollbars are like 2. Scrollbars *gui-...
user avatar
  • 3,960
0 votes
0 answers
37 views

When I open a .txt file, the double quotes ( " )are suppressed

First, I tried on Linux: I opened a .txt file (or copy and past the text from a website) but the double quotes are not shown... On Linux, they are replaced by this: ~~@~~ On Windows 10 (I use gVim on ...
user avatar
0 votes
0 answers
24 views

how to mkview *.cpp file if and only if a fold is made within the file?

My init.vim code cd ~/Documents/cp set backupdir=~/Documents/cp/vimtmp// set directory=~/Documents/cp/vimtmp// set undodir=~/Documents/cp/vimtmp// set viewdir=~/Documents/cp/vimtmp// augroup ...
user avatar
  • 111
1 vote
1 answer
101 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 ...
user avatar
  • 111
0 votes
1 answer
57 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 ...
user avatar
  • 111
4 votes
4 answers
753 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
  • 111
0 votes
0 answers
37 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,...
user avatar
  • 111
0 votes
1 answer
39 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' |...
user avatar
  • 111
0 votes
1 answer
39 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 ...
user avatar
  • 103
0 votes
0 answers
39 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
user avatar
  • 111

1
2 3 4 5
8