VIM: Difference between revisions

12 bytes added ,  20 April 2018
→‎Useful commands: add gitgutter
Line 232: Line 232:
* Signs toggle (default on): <code>:GitGutterSignsDisable</code>, <code>:GitGutterSignsEnable</code>, <code>:GitGutterSignsToggle</code>
* Signs toggle (default on): <code>:GitGutterSignsDisable</code>, <code>:GitGutterSignsEnable</code>, <code>:GitGutterSignsToggle</code>
* Highlights toggle (default off): <code>:GitGutterLineHighlightsDisable</code>, <code>:GitGutterLineHighlightsEnable</code>, <code>:GitGutterLineHighlightsToggle</code>
* Highlights toggle (default off): <code>:GitGutterLineHighlightsDisable</code>, <code>:GitGutterLineHighlightsEnable</code>, <code>:GitGutterLineHighlightsToggle</code>
* Jump between hunks: <code>[c</code>, <code>]c</code>
* Hunks
* Stage hunk: <code><nowiki><Leader></nowiki>hs</code>
** Jump between hunks: <code>[c</code>, <code>]c</code>
* Undo changes: <code><nowiki><Leader></nowiki>hu</code>
** Stage hunk: <code><nowiki><Leader></nowiki>hs</code>
* Preview hunk's changes: <code><nowiki><Leader></nowiki>hp</code>
** Undo changes: <code><nowiki><Leader></nowiki>hu</code>
** Preview hunk's changes: <code><nowiki><Leader></nowiki>hp</code>


= Possibly outdated by 2014 =
= Possibly outdated by 2014 =