1

When I run :marks it lists all the marks including the standard vim marks. This is somehow distracting.

Is there a way to list only my marks that I created using m-X for example?

3
  • :marks a-z should work – Christian Brabandt Oct 8 '20 at 11:03
  • For me it doesn't work. It just shows 'a' mark and doesn't show 'b' and 'c'. Although they are shown by just :marks – Salahuddin Ahmed Oct 8 '20 at 11:59
  • I found that :marks a-b will show 'a' and 'b'. :marks a-c will show 'a' and 'c'. :marks a-d will only show 'a'. As far as I read, this should list marks from a to d. If I run :marks abcd it will list 'a', 'b', and 'c' which all I have. So it looks like this is the best solution – Salahuddin Ahmed Oct 8 '20 at 12:05
3

You can define a custom command like this, that will only show the lowercase marks a-z:

:com :MyMarks :sil! marks abcdefghijklmnopqrstuvwxyz
0

I end up having this in my vimrc

nnoremap <silent> ,m :marks abcdefghijklmnopqrstuvwxyz<CR>:normal! `

With with ,m vim lists all my marks and then I only have to type the mark that I want to jump to and hit enter

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.