[UPDATE][VIM] Remove unused mappings
This commit is contained in:
parent
0d1457ee0b
commit
cc28222356
|
@ -1,8 +1,2 @@
|
|||
" Use ALE LSP-powered go-to-definition
|
||||
nnoremap <Leader>gd :ALEGoToDefinition<CR>
|
||||
|
||||
" Use ALE LSP-powered find-references
|
||||
nnoremap <Leader>gr :ALEFindReferences<CR>
|
||||
|
||||
" Use ALE LSP-powered symbol information
|
||||
nnoremap <Leader>K :ALEHover<CR>
|
||||
|
|
|
@ -2,15 +2,9 @@
|
|||
xnoremap dp :diffput<cr>
|
||||
xnoremap do :diffget<cr>
|
||||
|
||||
" Git add current file
|
||||
nnoremap <Leader>ga :Git add %:p<CR><CR>
|
||||
" Open status window
|
||||
nnoremap <Leader>gs :Gstatus<CR>
|
||||
" Open diff view of current buffer: the up/left window is the current index
|
||||
nnoremap <Leader>gd :Gdiffsplit!<CR>
|
||||
" Open current file log in new tab, populate its location list with history
|
||||
nnoremap <Leader>gl :sp<CR><C-w>T:Gllog --follow -- %:p<CR>
|
||||
" Open a buffer to the left with blame information
|
||||
nnoremap <Leader>gb :Gblame<CR>
|
||||
" Commit staged changes, open a new tab just for it
|
||||
nnoremap <Leader>gc :Gcommit -v -q<CR>
|
||||
|
|
|
@ -1,17 +1,6 @@
|
|||
" 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>
|
||||
|
||||
|
|
|
@ -9,6 +9,3 @@ nmap <Leader>lp <Plug>(qf_loc_previous)
|
|||
" Toggle quick-fix and location lists
|
||||
nmap <Leader>tf <Plug>(qf_qf_toggle)
|
||||
nmap <Leader>tl <Plug>(qf_loc_toggle)
|
||||
|
||||
" Jump to and from the quick-fix/location list
|
||||
nmap ç <Plug>(qf_qf_switch)
|
||||
|
|
Loading…
Reference in a new issue