VIM: Difference between revisions

693 bytes added ,  10 November 2017
→‎Useful commands: add gitgutter
→‎Miscellaneous: add check VIM version
→‎Useful commands: add gitgutter
Line 224: Line 224:
;Syntax on
;Syntax on
:<nowiki>:</nowiki>syntax on
:<nowiki>:</nowiki>syntax on
= Plug-ins =
== gitgutter ==
* Activation (default on): <code>:GitGutterDisable</code>, <code>:GitGutterEnable</code>, <code>:GitGutterToggle</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>
* Jump between hunks: <code>[c</code>, <code>]c</code>
* Stage hunk: <code><nowiki><Leader></nowiki>hs</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 =