[UPDATE][VIM] Mapping for quick-fix interaction

All mappings are preceded by the leader key.
- fn/fp cycle through errors,
- ln/lp cycle through locations
- qf toggles the quick-fix list
This commit is contained in:
Bruno BELANYI 2019-07-13 07:02:46 +02:00
parent 75c92c2a38
commit 771c14acc1

View file

@ -183,6 +183,30 @@ colorscheme gruvbox
" FIXME: missing UltiSnips configuration " FIXME: missing UltiSnips configuration
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Mappings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Yank until the end of line with Y, to be more consistent with D and C
nnoremap Y y$
" Map leader to space (needs the noremap trick)
nnoremap <Space> <Nop>
let mapleader=" "
" Mappings for working with this file.
map <Leader>ev :edit $MYVIMRC<CR>
map <Leader>es :source $MYVIMRC<CR>
" Run make silently, then skip the 'Press ENTER to continue'
noremap <Leader>m :silent! :make! \| :redraw!<CR>
" Mapping for quickfix bindings
nmap <Leader>fn <Plug>(qf_qf_next)
nmap <Leader>fp <Plug>(qf_qf_previous)
nmap <Leader>ln <Plug>(qf_loc_next)
nmap <Leader>lp <Plug>(qf_loc_previous)
nmap <Leader>qf <Plug>(qf_qf_toggle)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Status line " Status line
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""