if has('autocmd') && !exists('autocommands_loaded')
  " Load autocommands only once
  let autocommands_loaded = 1

  " === File type settings ===
  " Disable comment continuation when using 'o' or 'O'
  autocmd FileType * setlocal formatoptions-=o
  " Enable java completion
  autocmd FileType java set omnifunc=javacomplete#Complete
  " Activate spell checking for relevant files
  autocmd FileType gitcommit,markdown,tex set spell
  " Use tags from ~/.tags/<filetype>
  autocmd FileType * exec "setlocal tags+=~/.tags/" . &filetype

  " === Tab settings ===
  autocmd FileType python setlocal shiftwidth=4 softtabstop=4 expandtab
  autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab

  " === Pane settings ===
  " Resize panes when resizing window
  autocmd VimResized * wincmd =
  " Make quickfix windows take all the lower section of the screen when there
  " are multiple windows open
  autocmd FileType qf wincmd J

  " === Buffer settings ===
  " Recognise markdown files properly
  autocmd BufRead,BufNewFile *.md set filetype=markdown
  " Refresh trailing whitespace indicator
  autocmd BufRead,BufWritePost * unlet! b:statusline_trailing_space_warning
endif

if has('autocmd') && !exists('autocommands_loaded')
  " Load autocommands only once
  let autocommands_loaded = 1

  " === File type settings ===
  " Disable comment continuation when using 'o' or 'O'
  autocmd FileType * setlocal formatoptions-=o
  " Enable java completion
  autocmd FileType java set omnifunc=javacomplete#Complete
  " Activate spell checking for relevant files
  autocmd FileType gitcommit,markdown,tex set spell
  " Use tags from ~/.tags/<filetype>
  autocmd FileType * exec "setlocal tags+=~/.tags/" . &filetype

  " === Tab settings ===
  autocmd FileType python setlocal shiftwidth=4 softtabstop=4 expandtab
  autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab

  " === Pane settings ===
  " Resize panes when resizing window
  autocmd VimResized * wincmd =

  " === Buffer settings ===
  " Recognise markdown files properly
  autocmd BufRead,BufNewFile *.md set filetype=markdown
  " Refresh trailing whitespace indicator
  autocmd BufRead,BufWritePost * unlet! b:statusline_trailing_space_warning
endif

Remove forcing the quickfix window to the bottom
Remove forcing the quickfix window to the bottom

It's unpleasant because it also affects location list etc.
Use `:botright copen` to achieve the same behaviour.

jungomi/dotfiles