23 lines
643 B
VimL
23 lines
643 B
VimL
" Yank until the end of line with Y, to be more consistent with D and C
|
|
nnoremap Y y$
|
|
|
|
" Edit my vimrc in the current buffer
|
|
nnoremap <Leader>ev :edit $MYVIMRC<CR>
|
|
" Source my vimrc
|
|
nnoremap <Leader>es :source $MYVIMRC<CR>
|
|
" Source the current buffer
|
|
nnoremap <Leader>et :source %<CR>
|
|
|
|
" Easier escape from insert mode
|
|
inoremap jkj <Esc>
|
|
inoremap kjk <Esc>
|
|
|
|
" 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>
|