About: Diff the current buffer with another file   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

This tip provides a function (SetDiffEnviron) to set the "diff" environment in buffer. So, if you want to diff the right and the left window, you have to run :SetDiffEnviron into the right and the left buffer. Add the following to your vimrc file: function! SetDiffEnviron() set diff set scrollbind set scrollopt=ver,jump,hor set nowrap set fdm=diff endfunction :command! SetDiffEnviron call SetDiffEnviron()

AttributesValues
rdfs:label
  • Diff the current buffer with another file
rdfs:comment
  • This tip provides a function (SetDiffEnviron) to set the "diff" environment in buffer. So, if you want to diff the right and the left window, you have to run :SetDiffEnviron into the right and the left buffer. Add the following to your vimrc file: function! SetDiffEnviron() set diff set scrollbind set scrollopt=ver,jump,hor set nowrap set fdm=diff endfunction :command! SetDiffEnviron call SetDiffEnviron()
Version
  • n/a
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1341(xsd:integer)
Author
  • Michael Hooreman
Complexity
  • intermediate
Created
  • 2006(xsd:integer)
ID
  • 1343(xsd:integer)
NEXT
  • 1347(xsd:integer)
Rating
  • 68(xsd:integer)
abstract
  • This tip provides a function (SetDiffEnviron) to set the "diff" environment in buffer. So, if you want to diff the right and the left window, you have to run :SetDiffEnviron into the right and the left buffer. Add the following to your vimrc file: function! SetDiffEnviron() set diff set scrollbind set scrollopt=ver,jump,hor set nowrap set fdm=diff endfunction :command! SetDiffEnviron call SetDiffEnviron()
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software