You are not logged in.
pacdiffvim is a pacnew/pacorig/pacsave file updater for Vim enthusiasts. The shell script locates all .pacnew, .pacorig, .pacsave files and opens a tab for each diff in Vim.
Furthermore the script defines a special Vim function to deal with the diff.
The script invokes Vim with a bunch of command line arguments so you can handle everything inside one Vim session with standard Vim functionality.
You can find the source code and more detailed information here: https://github.com/jens-na/pacdiffvim
Dependencies
Bash 4.x
Vim 7.x
Features
opens a tab for each diff candidate in Vim
provides a special Vim command :OK to a) save the configuration file buffer and 2) delete the .pac* file which you have merged
you can change the root directory to update configration files in other directories like /mnt/etc
use gvim instead of vim to update the configuration files
Screenshot
Comments and contributions are appreciated.
Last edited by jens-na (2013-07-23 11:26:45)
Offline
Is the main difference between your pacdiffvim and pacdiff provided by pacman the existence of these special vim functions, like 'OK'?
pacdiff asks you what do you want to do when it finds e.g. pacnew files (view, skip etc.) and again after you've edited them (remove foo.pacnew, mv foo.pacnew to foo etc.).
Offline
There is only one command named :OK, which tells pacdiffvim that you are finished with the current diff and deletes the .pacnew file.
If you want to throw away/ignore the latest .pacnew file you can do this with:
:OK (diff finished)
If you like to overwrite your configuration file with the latest .pacnew file, you can do this like that:
:%diffput (standard vim command)
:OK (diff finished)
You can navigate between the diffs with standard Vim functions :tabn (next tab) or :tabp (previous tab)
There is no extra functionality, just another way of presentation, so basically you are right.
Offline
Cool. Thanks!
Offline