VIM svn tortoise integration: how to commit current buffer only? -


Comes from the code given below, it uses all the open buffers to travel

If a buffer is open which is not in the repo then the turtle will exit.

What is the version of this code that only buffers current?
In addition, before calling for travel, the buffer should write buffer.

  func! CommitSVNAll () buflist = [] for the range in B (1, bufnr ('$')) if buflisted (B) & amp; Amp; Add filebrandable (Bafamem (B)) Call (Buffalist, FanmodiDive (Bafium, Funnam (Bafine (B), ': P')) Andif Andf files = Join (Bleilist, '*') for files! = '' Silent Exec ! C: \ Program Files \ TortoiseSVN \ bin \ TortoiseProc.exe "/ command: commit / path:" 'files.' "/ Closeonend: 4 'Confirm other calls (' no file is loaded ') Endfunc  

You can try it, not trial:

  func! CommandSVNLL () file = FNMDIF (buff ('%'), ': P') If files! = '' Silent app '!', Start 'C': \ Program Files \ TortiseSNN \ bin \ Tortoisepec.xa "/ Command: Comm / Path: 'files.' / Close: 4 'Confirm other call (' no file is loaded ') AndyFforeync  

Basically, I just have to type files With buffer name, there is no experience with Turtle SVN, you have to check your own.


Comments