Undoing diff hunks in NeoVintageous
The ability to revert a diff hunk was added in Sublime Text 4. You can access it through the Command Palette command “History: Revert Hunk.” For quicker access, you can use a custom NeoVintageous mapping.
I like to map undoing hunks as <leader>hu
. This is the mapping used by vim-gitgutter, the popular vim plugin.
let mapleader=,
nnoremap <leader>hu :RevertHunk<CR>
To edit your rc file use the command palette: Open RC File.
To reload your rc file use the command palette: Reload RC File.
Jumping to diffs
You can jump to the next or previous diff with the commands ]c
and [c
.
Support for jumping to diffs was added in Sublime build 3189. In previous versions you needed Git Gutter.
Further reading
:help neovintageous
:help [c
:help ]c