Questions tagged [vim-quickfix]
21 questions
11
votes
2 answers
Is it possible to display result of Rg into quick fix window?
When i am searching :Rg , it is opening the result in FZF buffer. Often the filenames are not displayed fully in it. Also the once escaped the results are gone. I have to do research if need to check the same word again.
but :vim /pattern/g…

Samselvaprabu
- 16,830
- 32
- 144
- 230
4
votes
2 answers
Vim Quickfix prefixes double-bar "||" — explain?
I use the Quickfix view in Vim often.
The text in there always has a prefix of || added to it.
So, for instance, when I copy/paste out of that buffer, etc. I get those characters included by default.
Is there a way to disable this?
I haven't had…

jwd
- 10,837
- 3
- 43
- 67
3
votes
1 answer
Cursor-highlighting in quickfix-window: QuickFixCmdPre overriding QuickfixCmdPost?
I would like my quickfix-window to have some highlighting for the current line of the cursor.
After some research I found that I could configure the general appearance of the current line using set cursorline and highlight CursorLine term=bold…

AvantiC
- 367
- 3
- 17
2
votes
1 answer
Vim macro not working because of the shortcuts overlapping with Quick Fix command
So, I was trying to write a Vim macro and the macro @p I registered below includes a cc shortcuts which deletes a line. The macro is as follows.
" macro @p
qp
cc{j@eA,j@ejcc},
q
When I run the macro @p itself, it works just fine.
"…

sanguineman
- 17
- 2
1
vote
0 answers
How to normalize a file path opened from the quickfix?
I am using NeoVim v0.7.2 (also tested with v0.6.1) on Windows 10 in git-bash, with vim-dispatch to allow for asynchronous builds (building a C++ codebase with Clang).
When there are errors in the build, the quickfix is correctly populated, but the…

Ad N
- 7,930
- 6
- 36
- 80
1
vote
1 answer
Vim: Avoid having to press ENTER after successful make?
$ ls
Makefile html-page/ page-generator.m4
Run includes/
Alongside the Makefile, I have a script Run that is executed only when make completes without errors. This I've managed to implement with the following in my…

Quester
- 81
- 7
1
vote
1 answer
Vim errorformat string to show message in QuickFix removing part of it
I'm writing an errorformat string, and it works for the most part. My problem is that I have lines like this as the makeprg output:
Some text I want to show in the QuickFix window^M
Yes, the line ends with an spurious ^M character I want to remove.…

Raúl Núñez de Arenas Coronado
- 406
- 4
- 15
1
vote
1 answer
vim autocmd: Event based removal and addition of group commands
I am using quickfix and I have it set up so that a cwindow is run right after a Quick fix command. Also, I have a template file for my C++ source files which I want to be copied at the beginning of my new source files. Here is my .vimrc:
augroup…

cauthon14
- 269
- 1
- 3
- 14
1
vote
1 answer
How do I reload the quickfix window from a running Gvim?
Say I've got a file called warnings.txt that holds a list of doxygen warnings I want to inspect. In order to do this, I start Gvim (Win32 if that matters) from a command line using
gvim -q warnings.txt
Then, Gvim starts and I can start to process…

eckes
- 64,417
- 29
- 168
- 201
0
votes
0 answers
Neovim's quickfix finds the wrong file path to a warning using a makefile for cargo
Project structure
I have a Makefile in the root of my project for all the flags I use frequently. Here is the project structure:
├── Cargo.lock
├── Cargo.toml
├── katex-header.html
├── Makefile
├── README.md
├── src
│ ├── lib.rs
│ ├──…

Dumbo
- 55
- 8
0
votes
1 answer
Vim QuickFix window, automatically open file to view by focusing on it without pressing enter
So when I have the quickfix window open in Vim with a list of files in it, to look at a particular file, while in the window, I navigate up or down to go to select the one I want and press enter to see it.
I want quickfix to open the file for…

user938883
- 126
- 2
- 5
0
votes
1 answer
Execute vim pipe only when system() reports an error?
I have the following vim auto command:
autocmd BufWritePost *.go :cex system('revive '..expand('%:p')) | copen
It executes a binary called revive, passing it the current file path, and then opens up the quickfix window with the results from the…

Integralist
- 495
- 3
- 7
0
votes
0 answers
How to keep vim quickfix window or buffer opened all the time
I use quickfix window only for cscope. I would like to keep this open all the time. Currently quickfix window gets closed whenever there is a change in the file during cnext or cprev. I have tried location list too for cscope buffers. But that too…

badcompany
- 1,263
- 2
- 9
- 9
0
votes
2 answers
How to set which window Vim will choose to display a file selected from quickfix list
I have some windows opened in my vim (which were created using the split :split / :vsplit command). I also have a quickfix list populated with a list of files (which is the result of a grep command that I loaded using :cf command and then…

Baumann
- 1,119
- 11
- 20
0
votes
3 answers
Vim quickfix: How to open :make entries that were compiled in different directory than vim working directory?
I'm diving into the quickfix list of Vim that looks quite awesome, however I am not being able to exploit this because of a relative path problem. Explanation:
My Vim window path is .
I have a custom make command in Vim:
:set makeprg=west\ build\…

Dali
- 344
- 1
- 10