Skip to main content
7 events
when toggle format what by license comment
Jan 28, 2022 at 17:54 comment added hashlash It's now on defaults.vim
Feb 24, 2020 at 11:23 comment added brunch875 @NikoBellic First close the "old" window (marked as scratch buffer) with ':q'. You can change between windows by tapping ctrl-W twice while in normal mode. Then you can toggle off diff by writing :diffoff
Mar 9, 2019 at 22:21 comment added elig You can get rid of the if clause by substituting command with command! (see :h E174)
Feb 6, 2017 at 23:42 comment added Niko Bellic How do you go back to normal once you are done examining the differences?
Feb 6, 2017 at 23:41 comment added Niko Bellic I like this better because we see the difference right inside the vim buffer itself instead of in a terminal
Aug 27, 2015 at 16:56 comment added Lekensteyn ...as documented at vimdoc.sourceforge.net/htmldoc/diff.html#:DiffOrig. Advantage of this over w !diff % - is that it works over remote sources too (for example: vim sftp://example.com/foo.txt)
Sep 5, 2009 at 22:15 history answered 0x89 CC BY-SA 2.5