Skip to content

NeoVintageous - Jumping to Diffs ​

NeoVintageous has two vim commands for jumping to diff hunks:

CommandDescription
[cJump backward to the previous start of a change.
]cJump forwards to the next start of a change.

Both of those take a preceding count.

With a count, it means jump that many times: 3]c jump to the third change.

The 'wrapscan' option applies.

The 'wrapscan' option is enabled by default and means searches wrap around the end of the file.

'wrapscan' ​

'wrapscan' applies to search commands like:

CommandDescription
/Search.
?Reverse search.
*Search word under cursor.
#In reverse.
[sNext misspelled word.
]sPrevious misspelled word.

You can turn it off:

vim
:set nowrapscan

You can turn it on:

vim
:set wrapscan

Toggle it:

vim
:set wrapscan!

And display the current value in the status bar:

vim
:set wrapscan?

Further reading ​