Open fold and centre when moving between quickfix listings

My bindings for moving between quickfix listings ([c and ]c) now open
folds and centre the item.
master
Jonathan Hodgson 3 years ago
parent dcfc8e7fe4
commit 2364f96151
  1. 4
      nvim/.config/nvim/plugin/mappings.vim

@ -76,8 +76,8 @@ vnoremap / /\v
vnoremap < <gv vnoremap < <gv
vnoremap > >gv vnoremap > >gv
nnoremap [c :cprevious<cr> nnoremap [c :cprevious<cr>zOzz
nnoremap ]c :cnext<cr> nnoremap ]c :cnext<cr>zOzz
" Run proselint and put it in the quickfix list " Run proselint and put it in the quickfix list
nnoremap <leader>p :call mine#functions#proselint()<CR> nnoremap <leader>p :call mine#functions#proselint()<CR>

Loading…
Cancel
Save