From 771c14acc1eb0e765dd037a6089d60abb46300b0 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Jul 2019 07:02:46 +0200 Subject: [PATCH] [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 --- vim/.vimrc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index bd28b48..e686a3e 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -183,6 +183,30 @@ colorscheme gruvbox " 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 +let mapleader=" " + +" Mappings for working with this file. +map ev :edit $MYVIMRC +map es :source $MYVIMRC + +" Run make silently, then skip the 'Press ENTER to continue' +noremap m :silent! :make! \| :redraw! + +" Mapping for quickfix bindings +nmap fn (qf_qf_next) +nmap fp (qf_qf_previous) +nmap ln (qf_loc_next) +nmap lp (qf_loc_previous) +nmap qf (qf_qf_toggle) + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Status line """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""