Bruno BELANYI
a3d8ef9a63
Because a lot of my mappings use the <Leader> key, this is the only file that *must* be loaded before all the others, otherwise the value of leader when the script is read will be erroneous. I also tried to use `git write-tree` and `git commit-tree` to emulate a manual octopus merge to preserve the line history for each file. But honestly that gave a graph that was too ugly for a history that really did not need that amount of accountability. However it is a fun exercise, and I recommend to everyone to try it at least once. See Raymond Chen's blog `The Old New Thing`, with the post titled `How to split out pieces of a file while preserving git line history: The hard way with commit-tree`, for an explanation.
16 lines
487 B
VimL
16 lines
487 B
VimL
" Yank until the end of line with Y, to be more consistent with D and C
|
|
nnoremap Y y$
|
|
|
|
" Mappings for working with vimrc
|
|
nnoremap <Leader>ev :edit $MYVIMRC<CR>
|
|
nnoremap <Leader>es :source $MYVIMRC<CR>
|
|
|
|
" Run make silently, then skip the 'Press ENTER to continue'
|
|
noremap <Leader>m :silent! :make! \| :redraw!<CR>
|
|
|
|
" Remove search-highlighting
|
|
noremap <Leader><Leader> :nohls<CR>
|
|
|
|
" Explicit map for vim-cheat40 which seems to fail because of my <Nop> map
|
|
map <Leader>? :<C-u>Cheat40<CR>
|