Is there an equivalent to Xcode's quick jump bar (to navigate Swift MARK annotations within a file)?

Vi and Vim Asked by aehlke on October 28, 2020

vim screenshot of swift pragma marks

Does a rough equivalent to this Xcode quick jump bar feature exist as a Vim plugin? I haven’t been able to find any good leads on one in my research.

It’s a way to navigate sections in a file – in the case of Swift, the // MARK: sections annotated like this.

One Answer

You could search /MARK and then hit n, but faster and easier in my opinion is


And then you type : and the line number when you get the list of results.

The command can be shortened to :g/MARK/#, if you like, or mapped to a keysequence to make it even faster:

nnoremap <leader>m :global/MARK/#<CR>:

Answered by D. Ben Knoble on October 28, 2020

Add your own answers!

Related Questions

How to return from vimscript.python?

0  Asked on August 31, 2021 by niekas


Presentation of non-printable characters in messages

0  Asked on August 31, 2021 by feedforward


How do you “chomp” a string in Vim?

4  Asked on August 31, 2021 by bdesham


Properly restore terminal title after suspending vim

2  Asked on August 31, 2021 by ravron


Set cursor in quickfix on autocmd event

2  Asked on August 31, 2021 by kirill-bugaev


tabs after pastetoggle instead of spaces

1  Asked on August 31, 2021 by aldwinaldwin


Cursor in middle of the screen at start and end of file

1  Asked on August 31, 2021 by phantom


How can I still see underscores with cursorline?

1  Asked on August 31, 2021 by sparhawk


gvim: Make the mouse follow CTRL-W_j and CTRL-W_k

0  Asked on August 31, 2021 by michael-scheper


Change match highlights on CmdlineLeave

0  Asked on August 31, 2021 by biggybi


Un-tab the cursor

1  Asked on August 31, 2021


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP