dotfiles/nvim/.config/nvim/after/ftplugin/qf.vim

18 lines
430 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> <Leader>- :colder<CR>
nnoremap <buffer> <Leader>+ :cnewer<CR>
nnoremap <buffer> <Leader>g :Cfilter<SPACE>