diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-10-26 07:42:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 07:42:29 +0800 |
commit | f2fc44550fbe5b7ebfedc2b155dc41e93f49aedb (patch) | |
tree | 6bad18b73d4f96c6b29d456c0269dcf1a6bc5533 /runtime/doc/quickfix.txt | |
parent | bfe8a39512bc4dbf4921c56158c61a172e8f10cf (diff) | |
download | rneovim-f2fc44550fbe5b7ebfedc2b155dc41e93f49aedb.tar.gz rneovim-f2fc44550fbe5b7ebfedc2b155dc41e93f49aedb.tar.bz2 rneovim-f2fc44550fbe5b7ebfedc2b155dc41e93f49aedb.zip |
vim-patch:9.0.2064: cannot use buffer-number for errorformat (#25782)
Problem: cannot use buffer-number for errorformat
Solution: add support for parsing a buffer number using '%b' in
'errorformat'
closes: vim/vim#13419
https://github.com/vim/vim/commit/b731800522af00fd348814d33a065b92e698afc3
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'runtime/doc/quickfix.txt')
-rw-r--r-- | runtime/doc/quickfix.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index 0bf04034ec..4428ff2f65 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -1381,6 +1381,7 @@ rest is ignored. Items can only be 1023 bytes long. Basic items %f file name (finds a string) + %b buffer number (finds a number) %o module name (finds a string) %l line number (finds a number) %e end line number (finds a number) @@ -1420,6 +1421,11 @@ On Windows a leading "C:" will be included in "%f", even when using "%f:". This means that a file name which is a single alphabetical letter will not be detected. +The "%b" conversion is used to parse a buffer number. This is useful for +referring to lines in a scratch buffer or a buffer with no name. If a buffer +with the matching number doesn't exist, then that line is used as a non-error +line. + The "%p" conversion is normally followed by a "^". It's used for compilers that output a line like: > ^ |