vimでTortoiseSVNを操作する

windowsからSVNコマンドラインで操作するにはPuttyを使うようにした。
けれども、正直、めんどい。ぃやんすゎ

TortoiseSVNvimで操作する

そこでTortoiseSVNの操作をvimから行えるようにした


ex) コミット | vimrc

function TortoiseCommit()
    silent execute(':w')
    silent execute('!C:\Progra~1\TortoiseSVN\bin\TortoiseProc.exe /command:commit /path:"%" /notempfile /closeonend:1')
endfunction
command TCommit :call TortoiseCommit()
  • パスでProgra~1と記述しているのは、スペースを含むとエラーになるので、こういった記述をします。
  • command: TortoiseSVNのコマンドを指定する。
  • notempfile: おまじないってことで、関係なし!
  • closeonend: ダイアログの閉じるタイミングの指定