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
0answers
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=...
0
votes
0answers
19 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. ...
0
votes
0answers
23 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. ...
2
votes
1answer
120 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. ...
1
vote
1answer
40 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 ...
0
votes
1answer
25 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 ...
0
votes
0answers
35 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 ...
1
vote
0answers
29 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?
0
votes
1answer
40 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. ...
0
votes
1answer
33 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....
1
vote
1answer
43 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 ...
1
vote
0answers
12 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
1
vote
0answers
65 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-...
0
votes
0answers
33 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 ...
0
votes
0answers
14 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 ...
1
vote
1answer
36 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
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 ...
3
votes
4answers
176 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
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 ...
0
votes
0answers
33 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
31 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
30 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
28 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
32 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
2answers
49 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
19 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
55 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
25 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
36 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
49 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
22 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
53 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
105 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
126 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
96 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
137 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
87 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
100 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
69 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
252 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
30 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
22 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
58 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
68 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
55 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
67 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 ...

1
2 3 4 5
8