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 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""