grep,make: bind normal mode return to jump
This commit is contained in:
parent
efc0a8bc07
commit
d647e817a4
|
@ -23,6 +23,7 @@ def -shell-params -file-completion \
|
|||
hook global WinSetOption filetype=grep %{
|
||||
addhl group grep-highlight
|
||||
addhl -group grep-highlight regex "^([^:]+):(\d+):" 1:cyan 2:green
|
||||
hook buffer NormalKey <c-m> jump
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=(?!grep).* %{ rmhl grep-highlight; }
|
||||
|
|
|
@ -18,6 +18,7 @@ def -shell-params make %{ %sh{
|
|||
hook global WinSetOption filetype=make %{
|
||||
addhl group make-highlight
|
||||
addhl -group make-highlight regex "^([^:\n]+):(\d+):(\d+):\h+(?:((?:fatal )?error)|(warning)|(note)|(required from(?: here)?))?.*?$" 1:cyan 2:green 3:green 4:red 5:yellow 6:blue 7:yellow
|
||||
hook buffer NormalKey <c-m> errjump
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=(?!make).* %{ rmhl make-highlight; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user