mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
revert to more vanilla bindings for marks
This commit is contained in:
parent
7e645fb043
commit
fbf681ac29
@ -76,8 +76,9 @@ noremap <silent> <expr> m "m".toupper(nr2char(getchar()))
|
|||||||
sunmap '
|
sunmap '
|
||||||
sunmap m
|
sunmap m
|
||||||
|
|
||||||
" list jumps/marks
|
" list marks
|
||||||
map <leader>mm :call ListSelect("marks", "'")<CR>
|
map <leader>mm :marks<cr>
|
||||||
|
|
||||||
" clear marks
|
" clear marks
|
||||||
map <leader>md :delmarks A-Z0-9 <cr>
|
map <leader>md :delmarks A-Z0-9 <cr>
|
||||||
|
|
||||||
@ -145,27 +146,6 @@ nnoremap <down> <C-x>
|
|||||||
" helpers
|
" helpers
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
" display and select from a list of marks and jumps
|
|
||||||
" https://vi.stackexchange.com/a/42965
|
|
||||||
"
|
|
||||||
function! ListSelect(command, jump)
|
|
||||||
execute a:command
|
|
||||||
echohl Question
|
|
||||||
echo "Enter mark (ESC to cancel): "
|
|
||||||
echohl NONE
|
|
||||||
let mark = toupper(nr2char(getchar()))
|
|
||||||
redraw
|
|
||||||
if mark !=# "\e"
|
|
||||||
try
|
|
||||||
execute "normal! g" .. a:jump .. mark
|
|
||||||
catch
|
|
||||||
echohl ErrorMsg
|
|
||||||
echo substitute(v:exception, "^Vim(.*):", "", "")
|
|
||||||
echohl NONE
|
|
||||||
endtry
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" better grep wrapper
|
" better grep wrapper
|
||||||
" https://gist.github.com/romainl/56f0c28ef953ffc157f36cc495947ab3
|
" https://gist.github.com/romainl/56f0c28ef953ffc157f36cc495947ab3
|
||||||
"
|
"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user