Questions tagged [quickfix]

Questions about the usage of quickfix commands and quickfix windows.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

After LatexCompiling with \ll the source file is no longer displayed, but instead another file of the Latex library structure is displayed

Upon compiling a large Latex file with "\ll" inside Vim that contains on purpose an latex command typo (using $\relta$ instead of $\Delta$) I get 3 windows (with the Vim look and feel -- ...
2
votes
1answer
34 views

Using Quickfix list, how to add a line/string to a certain line number of each file

Scenario: I've got 4 files in my Quickfix list and I want to add a new line, "status": "not started", onto line 5 of each of them. I tried this: cfdo norm 5GO"status": &...
1
vote
1answer
21 views

vim logfile reviewer auto file follower

I am sure this has been solved, but I cannot find a matching question. I have a log file with the format: <LOG SEVERITY> <FILENAME> (<LINENO>) @<TIME> <MESSAGE> Where <...
1
vote
1answer
19 views

Issue with makeprg Shell Script $? Variable

I have the following .vimrc: let &makeprg="./run-tests" The contents of run-tests: #!/bin/sh error_file=$(mktemp) coverage run --source "$PWD" --branch -m pytest tests/ >&...
1
vote
1answer
30 views

How to change the filename in a quickfix list?

I use machines with vim 8.1.2269 I have a common situation where I cross compile on one machine and debug on another. As such I'll generate an error.err file to use with vim's quickfix feature. I have ...
0
votes
1answer
28 views

E926: Current location list was changed error when pressing Enter in quickfix

I have a quickfix window that lists errors in my php file like tests/phpunit/MyTest.php|425 error| unexpected 'return' (T_RETURN) I used to be able to hit Enter and jump to the file and line, but now ...
0
votes
1answer
11 views

Sort quickfix entries by most relevant files?

I have a project that has a lot of warnings. I'm wondering (until I fix all the errors) how I can make my quickfix results more relevant? My compiler script uses %t so it can differentiate errors from ...
0
votes
2answers
74 views

How can I prevent vim from auto-opening the first quickfix list item?

Basically, I'd like the same type of behavior as when you use :grep! vs. :grep. I'm using a find-files plugin that outputs to the quickfix list and I don't want vim to automatically open the first ...
1
vote
1answer
37 views

Change Directory with Errorformat

I'm trying to write an errorformat for JUnit. Directory structure from cwd is: unsw/piazza/PiazzaForum.java unsw/piazza/Thread.java unsw/test/PiazzaTest.java Amongst all the cruft outputted by JUnit, ...
0
votes
0answers
18 views

Default javac Compiler Plugin Does not Display Shell Output

I want to compile and run a generated java executable inside of Vim quickfix. My .vimrc: function! Make(script) if &ft ==# "c" || &ft ==# "cpp" compiler gcc elseif &...
0
votes
0answers
24 views

Enable syntax highlighting for files opened by quickfix commands like cc

After populating quickfix window using commands like :vimgrep, when I jump to a quickfix entry using cc <number>, if the file corresponding to that quickfix entry wasn't already opened in a ...
1
vote
3answers
133 views

How to Create Sublime-Like Build Systems in Vim?

I am currently new to neovim. Something that has me a bit stuck is being able to easily run my code. The text editor I used before trying out vim was Sublime Text 3, and, in that text editor, all I ...
1
vote
2answers
47 views

Go back to previous position when coming out of quickfix

When I navigate out of the quickfix list, the split I get put back in is not the same as the one I left. For example: vim -u NONE :copen open quickfix list ^w w leave quickfix list :vsplit open a ...
1
vote
2answers
21 views

How to avoid getting search results from files that are in a directory that contains a folder named "xyz" in its path

I would like to exclude results of a vimgrep search pattern from the quick fix list. The exclusions should be for all files that are under a directory or parent directory called "xyz". ...
1
vote
3answers
157 views

Function That Substitutes Across Multiple Files

I'm trying to create a function that implements the functionality outlined here: Vim search replace all files in current (project) folder My current attempt: nnoremap <C-F> :call ...
1
vote
2answers
39 views

How do you prevent a new window from opening when running :make

Whenever I run :make in Vim, it always takes control away from my buffer, places me in a temporary view where I see the makeprg's output and then prompts me to "Press ENTER or type command to ...
1
vote
0answers
33 views

vimtex-compiler-ss does not open quickfix

Due to my muscle memory(aquired from vim-latex and other code compilation, so <F10> is universal compiler for me), I prefer singleshot calculation. I do have given a shot to \ll and then just ...
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 ...
0
votes
2answers
57 views

vim get error properly formatted in quickfix

Please find my minimal vimrc (whatever I use for Latex compilation) "General "{{{ set nocompatible " because vim is not vi "set autowrite ...
0
votes
0answers
16 views

Airline changes a title in the tabline by showing the result of quickrun in a new tabpage

I tried to show the result of quickrun on a new tab page. I succeed in showing the result via a new tab page by the following vimrc. A function Unique_open_tab opens the result via a new tab page. (In ...
0
votes
3answers
1k views

How can i compile cpp using vim

I want to be able to compile c++ code from within vim without running a new terminal and calling the compiler. **How can I do it ** please
1
vote
1answer
33 views

Difference between make and make!

According to the help page the only difference between :make and :make! is that the latter doesn't jump to the first error. So why isn't :make! <Bar> silent cnext<CR> equivalent to :make? ...
4
votes
1answer
234 views

How to navigate vim buffers using quickfix list?

I am trying to come up with a way to populate the vim quickfix window with the output from :ls I tried some variants like cexpr ":execute ls" but it doesn't work. Can someone please help me ...
4
votes
1answer
167 views

Import an error file to the quickfix list without leaving vim

I know that the quickfix list is very useful for the edit-compile-edit cycle. I like the fact that we can jump directly to an error from it. Actually I am trying to understand the way I can parse a ...
1
vote
1answer
48 views

Compile man pages written in groff_man?

What would you reccommend as makeprg for compiling nroff documents (for man pages)? I currently have it set to mandoc because it works when I do it from the terminal: mandoc foo.1 When I run :make, it ...
0
votes
1answer
115 views

Unmapping keys for a specific buffer(quickfix) only?

I usually have j and k bound to gj and gk, respectively for navigating wrapped lines. But this becomes annoying when I have to use the quickfix window, so I thought of using something like : augroup ...
0
votes
2answers
155 views

How to disable the quickfix window?

This is the display when I typed :AsyncRun -mode=term -pos=bottom ~/.anaconda/bin/python %. But if I set: filetype plugin on map <F5> :call RunPython()<CR> function! RunPython() exec &...
0
votes
0answers
52 views

Remove full path from quickfix list when using vimgrep

I use VIM 7.4. When I want to search some text in my project, i use following command: :vimgrep /pattern/j *.c *.h Then I use :cw command to open quickfix list for getting search results. Here is my ...
0
votes
1answer
68 views

Not recognising "In file included from"

I'm using the default errorformat, but messages starting with "In file included from" aren't giving me the quickfix output I expect For example: || [ 0%] Building CXX object CMakeFiles/blah/...
0
votes
1answer
42 views

error not formatted as per efm

I have created a mwe plugin to show my problem for fortran ft. tree ftrial ftrial ├── autoload │   └── makes.vim └── ftplugin └── fortran_mk.vim with cat ftrial/autoload/makes.vim " ...
1
vote
1answer
42 views

Buffer opened when compiling succeeds

I am writing a vim plugin for the fortran filetype. In an autoload script, I have done: " File Name: autoload/makes.vim let s:Compiler = get(g:, "fortran_compiler", "gfortran"...
1
vote
1answer
91 views

Text to vim-quickfix with navigation

LaTeX, being a markup language, is very hard to grammar-check. I found one program, that do this exactly Textidote. Problem is, this is a standalone program and, for example, this latex code: \...
0
votes
1answer
115 views

How can I have lnext/lprev fallback to cnext/cprev when appropriate?

It is often the case that I am in projects with varying filetypes. Sometimes I'm compiling using :make<CR> and sometimes I'm using plugins like ALE. At any given time, I probably only have one ...
0
votes
1answer
24 views

Quickfix stack doesn't work when using make -j

As mentioned in other questions, using make -C buildpath as makeprg in Vim and the appropriate errorformat triggers the nice handling of the quickfix directory stack. That is, the quickfix uses the "...
1
vote
1answer
73 views

How to insert text using substitute and regex?

Honestly I can't read regex for now. I have quick-fix list and I have a hunch that this can be done with regex but I don't know how. I want this: @ViewChild(MatTable) @ViewChild('text 1') @...
2
votes
1answer
94 views

Why does `:cdo print` not show full output?

:cdo print command (intended to print every line in the quickfix list), shows generic file information instead of line output for some quickfix entries. Why is this? The following example is taken ...
0
votes
1answer
220 views

Quickfix won't parse :make output

My makeprg is set to: cd build/ && cmake --build . --config Debug && ctest && gdb -q -ex run ./a This allows me to build application, run tests and start debugging session ...
0
votes
2answers
457 views

Highlight results of :grep while in quickfix window

To my .vimrc I added a hook which automates entering the quickfix after :grep processing: autocmd QuickFixCmdPost [^l]* nested cwindow 20 Another thing I care about but can't achieve is automation ...
2
votes
1answer
106 views

How to put the output of a function call into quickfix list?

I have the following function that runs eslint project wise: function! EslintProject() " Allows using eslint --format compact output with quickfix list set errorformat+=%f:\ line\ %l\\,\ col\ %c\\...
3
votes
0answers
84 views

How to search the output of vim command line commands like `:ls`, `:browse oldfiles`

Back from emacs recently, in emacs I can list all the existing buffers in a emacs buffer, where I can do search, delete or jumping etc. In Vim, if I type :browse oldfiles, a long list may be returned ...
0
votes
1answer
220 views

Neovim, read entries from the terminal into quickfix buffer

I made my own vim wrapper around ripgrep (I know there is vim-grepper, but I wanted to try customize some things). The crux of it is I populate a quickfix window as follows: let searchString = input(...
2
votes
1answer
78 views

Why does this binding break the quickfix window? [duplicate]

If I have this vimrc: set nocompatible nnoremap <C-m> ^^ When I try to open a file from the quickfix window by pressing enter nothing happens. If I comment out the last line, so the vimrc is ...
1
vote
2answers
140 views

Put in quickfix list the files whose content does not match a pattern inside it

I would like to put in the quickfix the files not matching a pattern. That it, these files don't have any line matching the search pattern. I know that for finding files whose content match a pattern ...
0
votes
1answer
117 views

Line position after quickfix jump

I'm using fzf's Rg command to populate QuickFix window with all search results. I also have my own mappings to :cn and :cp commands. Everything is fine except one thing when I press mapped key for :...
3
votes
1answer
336 views

Open quickfix Window Only, Don't Jump To First Result

Is there a way to open just the quickfix list without jumping to the first result when using :lt? I am using :lt to populate the location list with tags that match with the following binding: nmap &...
1
vote
2answers
341 views

quickfix Menu Usage With :tselect and :vimgrep

I am currently using the following mapping to search for knows tags: nnoremap <expr> <Leader>t "<ESC>:tselect /" . input("") . "<ESC>" I also use this mapping to grep all ...
1
vote
1answer
372 views

Open quickfix/help in existing window [duplicate]

my usual setup is two vertically split windows. Lets say my cursor is in left window. When I vimgrep something, I would like for quickfix window to reuse already opened right window and automatically ...
2
votes
1answer
88 views

visit file from quickfix list without populating oldfiles

I like consulting my oldfiles to see what I've been working on recently and to make it easy to find files that are buried deep in various directories. Before I started using the grep and make commands,...
2
votes
1answer
93 views

load quickfixlist into a specific window

I'm not interested in loading an item into a specific window. I'm interested in opening/loading quickfix list into a specific window/pane. Searched online everywhere, but couldn't find it. Does anyone ...
1
vote
1answer
403 views

Visual delete items from quickfix list

I am trying to delete items from the quickfix list, using the same delete interface I am used to, visual delete and dd. The .vimrc code I am trying to use to accomplish this is below. It does not work....