File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,14 @@ decl str docsclient
2
2
3
3
hook global WinSetOption filetype =man %{
4
4
addhl group man-highlight
5
+ # Sections
5
6
addhl -group man-highlight regex ^\S.*?$ 0 :blue
6
- addhl -group man-highlight regex ^\h+-+[-a-zA-Z_]+ 0 :yellow
7
- addhl -group man-highlight regex [-a-zA-Z_.]+\(\d\) 0 :green
8
- hook window -group man-hooks NormalKey <c-m> man
9
- set buffer tabstop 8
7
+ # Subsections
8
+ addhl -group man-highlight regex ' ^ {3}\S.*?$' 0 :default +b
9
+ # Command line options
10
+ addhl -group man-highlight regex ' ^ {7}-[^\s,]+(,\s+-[^\s,]+)*' 0 :yellow
11
+ # References to other manpages
12
+ addhl -group man-highlight regex [-a-zA-Z0-9_.]+\(\d\) 0 :green
10
13
}
11
14
12
15
hook global WinSetOption filetype =(?!man).* %{
@@ -19,7 +22,7 @@ def -hidden -params .. _man %{ %sh{
19
22
colout=$( mktemp /tmp/kak-man-XXXXXX)
20
23
MANWIDTH=${kak_window_width} man " $@ " > $manout
21
24
retval=$?
22
- col -b > ${colout} < ${manout}
25
+ col -b -x > ${colout} < ${manout}
23
26
rm ${manout}
24
27
if [ " ${retval} " -eq 0 ]; then
25
28
echo " edit! -scratch '*man*'
You can’t perform that action at this time.
0 commit comments