25 lines
596 B
VimL
25 lines
596 B
VimL
" Always open QF window at the bottom
|
|
wincmd J
|
|
" Quit vim if the last window is qf
|
|
autocmd BufEnter <buffer> if winnr('$') < 2| q | endif
|
|
|
|
setlocal scrolloff=0
|
|
setlocal nowrap
|
|
setlocal norelativenumber number
|
|
setlocal linebreak
|
|
setlocal nolist
|
|
setlocal nocursorline
|
|
setlocal nobuflisted
|
|
setlocal nospell
|
|
|
|
nnoremap <buffer> [- :colder<CR>
|
|
nnoremap <buffer> ]+ :cnewer<CR>
|
|
nnoremap <buffer> <Leader>g :Cfilter<SPACE>
|
|
nnoremap <buffer> p :call quickui#tools#preview_quickfix()<CR>
|
|
|
|
if !empty(getloclist(0)) == 1
|
|
nnoremap <buffer> q <CR>:lclose<CR>
|
|
else
|
|
nnoremap <buffer> q <CR>:cclose<CR>
|
|
endif
|