2019-10-25 23:59:51 +02:00
|
|
|
" Yank until the end of line with Y, to be more consistent with D and C
|
|
|
|
nnoremap Y y$
|
|
|
|
|
2019-11-04 18:03:11 +01:00
|
|
|
" Edit my vimrc in the current buffer
|
2019-10-25 23:59:51 +02:00
|
|
|
nnoremap <Leader>ev :edit $MYVIMRC<CR>
|
2019-11-04 18:03:11 +01:00
|
|
|
" Source my vimrc
|
2019-10-25 23:59:51 +02:00
|
|
|
nnoremap <Leader>es :source $MYVIMRC<CR>
|
2019-11-04 18:03:11 +01:00
|
|
|
" Source the current buffer
|
2019-11-04 17:54:31 +01:00
|
|
|
nnoremap <Leader>et :source %<CR>
|
2019-10-25 23:59:51 +02:00
|
|
|
|
2019-11-04 17:53:57 +01:00
|
|
|
" Easier escape from insert mode
|
|
|
|
inoremap jkj <Esc>
|
|
|
|
inoremap kjk <Esc>
|
|
|
|
|
2019-10-25 23:59:51 +02:00
|
|
|
" 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>
|