Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I give the quick fix window a different status line in vim?

Tags:

vim

statusline

I'd like to give the Quick Fix window a different status line than all my other windows.

I want it to have:

set statusline=\ %n\ \ %f%=%L\ lines\ 

When I'm in the quick fix window, I can use :setlocal, but how in my .vimrc can I make it have a different status line?

like image 615
Ned Batchelder Avatar asked Aug 29 '10 01:08

Ned Batchelder


People also ask

How do I open a quickfix window?

Then, to get back to the Quickfix List I type Ctrl + W j for "move down a window" and I'm back. Finally, when I'm done, I just type :q , like I would to close any normal window.

How do I turn off quickfix Vim?

To close the quickfix window, you use :cclose , as @statox mentioned in the comments.


1 Answers

This should work

autocmd Filetype qf setlocal statusline=\ %n\ \ %f%=%L\ lines\ 
like image 180
Nuz Avatar answered Sep 22 '22 23:09

Nuz