On Sunday, January 19, 2014 6:37:10 PM UTC-6, Gary Johnson wrote:
> One problem I've found with using the quickfix window is that when
> 
> it is open, the quickfix list traversal commands :cn, :cp, etc., no
> 
> longer display "(n of m)" in the command line.
> 
> 
> 
> To work around that problem, I set a 'statusline' in my
> 
> ~/.vim/after/ftplugin/qf.vim which is the same as the value set in
> 
> $VIMRUNTIME/ftplugin/qf.vim but with the addition of " (%l\ of\ %L)"
> 
> at the start of this line.
> 
> 
> 
>     setlocal stl=%t\ (%l\ of\ %L)%{exists('w:quickfix_title')?\ '\ 
> '.w:quickfix_title\ :\ ''}\ %=%-15(%l,%c%V%)\ %P
> 
> 
> 
> If others agree that this is generally useful and doesn't take too
> 
> much room on the status line (I typically run Vim in a 208-column
> 
> window), I propose that this change be made to the standard qf.vim.
> 
> 

The problem is, some compilers spit out a bunch of lines that are not errors or 
warnings. Then the quickfix window contains many more lines than actual 
quickfix items. The compiler I use at work probably has one error line for 
every 10 lines or so of output in the quickfix window. I have something similar 
in my own status line, but it uses some functions to determine the actual 
number of valid quickfix items rather than blindly using a line count.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui