5 { letLexpr = "s:options"
6 , letValue = "get(g:, 'FerretQFOptions', 1)"
8 , GenericStatement "if s:options"
9 , GenericStatement "setlocal nolist"
10 , GenericStatement "if exists('+relativenumber')"
11 , GenericStatement "setlocal norelativenumber"
12 , GenericStatement "endif"
13 , GenericStatement "setlocal nowrap"
14 , GenericStatement "setlocal number"
16 { letLexpr = "s:original_scrolloff" , letValue = "&scrolloff" }
17 , GenericStatement "set scrolloff=0"
18 , GenericStatement "if has('autocmd')"
19 , GenericStatement "augroup FerretQF"
20 , GenericStatement "autocmd!"
22 "autocmd BufLeave <buffer> execute 'set scrolloff=' . s:original_scrolloff"
24 "autocmd BufEnter <buffer> set scrolloff=0 | setlocal nocursorline"
25 , GenericStatement "augroup END"
26 , GenericStatement "endif"
27 , GenericStatement "endif"
29 { letLexpr = "s:map" , letValue = "get(g:, 'FerretQFMap', 1)" }
30 , GenericStatement "if s:map"
32 "nnoremap <buffer> <silent> d :set operatorfunc=ferret#private#qf_delete_motion<CR>g@"
34 "nnoremap <buffer> <silent> dd :call ferret#private#qf_delete()<CR>"
36 "vnoremap <buffer> <silent> d :call ferret#private#qf_delete()<CR>"
37 , GenericStatement "endif"
41 , OptionAnnotation "g:FerretQFOptions" "boolean" (Just "1")
43 [ Plaintext "Controls"
55 , Plaintext "overrides"
61 , Plaintext "windows."
69 , Plaintext "settings,"
75 , Link "norelativenumber"
89 , Plaintext "intended"
105 , Plaintext "typically"
111 , Plaintext "relative"
117 , Plaintext "windows,"
121 , Plaintext "usable."
132 , Plaintext "overridden"
134 , Plaintext "settings"
144 , Link "ferret-overrides"
150 , Plaintext "prevent"
156 , Plaintext "settings"
162 , Plaintext "applied,"
166 , Link "g:FerretQFOptions"
172 , Fenced [ "let g:FerretQFOptions=0" ]
173 , OptionAnnotation "g:FerretQFMap" "boolean" (Just "1")
175 [ Plaintext "Controls"
177 , Plaintext "whether"
185 , Plaintext "mappings"
193 , Plaintext "results"
199 , Plaintext "deleting"
201 , Plaintext "results."
205 , Plaintext "mappings"
207 , Plaintext "include:"
221 , Plaintext "selection"
232 , Plaintext "current"
238 , Plaintext "{motion}"
248 , Plaintext "indicated"
252 , Plaintext "{motion}"
258 , Plaintext "prevent"
262 , Plaintext "mappings"
278 , Fenced [ "let g:FerretQFMap=0" ]