diff --git a/home/dot_vimrc b/home/dot_vimrc index 9e9e3b0c..506f0f3d 100644 --- a/home/dot_vimrc +++ b/home/dot_vimrc @@ -76,8 +76,9 @@ noremap m "m".toupper(nr2char(getchar())) sunmap ' sunmap m -" list jumps/marks -map mm :call ListSelect("marks", "'") +" list marks +map mm :marks + " clear marks map md :delmarks A-Z0-9 @@ -145,27 +146,6 @@ nnoremap " 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 " https://gist.github.com/romainl/56f0c28ef953ffc157f36cc495947ab3 "