Editing
Vimdiff
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
To switch windows in vimdiff or to navigate windows in vimdiff or to change windows in vimdiff try the following: The ":vertical" command can be inserted before another command that splits a window. MOVING BETWEEN WINDOWS CTRL-W h move to the window on the left CTRL-W j move to the window below CTRL-W k move to the window above CTRL-W l move to the window on the right CTRL-W t move to the TOP window CTRL-W b move to the BOTTOM window Moving windows == CTRL-W K move window to the upper CTRL-W H move window to the far left CTRL-W J move window to the bottom CTRL-W L move window to the far right Source: [https://groups.google.com/forum/#!topic/bash-tips/kOzx8FVTVOc] == This looks terrifying at first, but let me explain what is going on. From left to right, top to the bottom: *LOCAL β this is file from the current branch *BASE β common ancestor, how file looked before both changes *REMOTE β file you are merging into your branch` *MERGED β merge result, this is what gets saved in the repo Letβs assume that we want to keep the βoctodogβ change (from REMOTE). For that, move to the MERGED file (Ctrl + w, j), move your cursor to a merge conflict area and then: :diffget RE This gets the corresponding change from REMOTE and puts it in MERGED file. You can also: :diffg RE " get from REMOTE :diffg BA " get from BASE :diffg LO " get from LOCAL Save the file and quit (a fast way to write and quit multiple files is :wqa). Run git commit and you are all set! [http://www.rosipov.com/blog/use-vimdiff-as-git-mergetool/]
Summary:
Please note that all contributions to Jan's Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Jan's Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information