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

Inconsistent behavior from map

1  Asked on August 31, 2021 by stevied


Persistent tag highlights when changing between buffers

1  Asked on August 31, 2021 by vjekoslav


Use normal command output as variable

1  Asked on August 31, 2021 by hassek


Gvim throws the error ‘E285: Failed to create input context’

1  Asked on August 31, 2021 by vladislavthepoker69


How to add a breakpoint into vim

0  Asked on February 18, 2021


Disable mapping of `Man`

0  Asked on February 8, 2021 by tornaxo7


Convert sed regex to vim regex

3  Asked on February 6, 2021


Automatically close oldest buffers?

3  Asked on February 1, 2021 by truejournals


Ask a Question

Get help from others!

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