Skip to content
Browse files

small changes in help files

  • Loading branch information...
2 parents c0dfdf6 + db62e91 commit 13c9264ba8641e210f198253f247ee2a830d25c9 @chrisbra committed
Showing with 83 additions and 32 deletions.
  1. +4 −2 README
  2. +14 −16 Recover.vba
  3. +5 −9 autoload/recover.vim
  4. +4 −2 doc/recoverPlugin.txt
  5. +3 −3 plugin/recover.vim
  6. +53 −0 post.pl
View
6 README
@@ -1,7 +1,7 @@
*recover.vim* Show differences for recovered files
Author: Christian Brabandt <cb@256bit.org>
-Version: 0.9 Wed, 02 Jun 2010 19:37:39 +0200
+Version: 0.11 Thu, 21 Oct 2010 22:57:10 +0200
Copyright: (c) 2009, 2010 by Christian Brabandt
The VIM LICENSE applies to recoverPlugin.vim and recoverPlugin.txt
@@ -98,7 +98,9 @@ third line of this document.
==============================================================================
4. recover History *recover-history*
- 0.10: (unreleased) : minor documentation update
+ 0.12: (unreleased) : minor documentation update
+ 0.11: Oct 19, 2010 : use confirm() instead of inputdialog()
+ (suggested by D.Fishburn, thanks!)
0.9: Jun 02, 2010 : use feedkeys(...,'t') instead of feedkeys()
(this works more reliable, although it
pollutes the history), so delete those
View
30 Recover.vba
@@ -4,12 +4,12 @@ finish
plugin/recover.vim [[[1
34
" Vim plugin for diffing when swap file was found
-" Last Change: Wed, 02 Jun 2010 19:37:39 +0200
-" Version: 0.9
+" Last Change: Thu, 21 Oct 2010 22:57:10 +0200
+" Version: 0.11
" Author: Christian Brabandt <cb@256bit.org>
" Script: http://www.vim.org/scripts/script.php?script_id=3068
" License: VIM License
-" GetLatestVimScripts: 3068 7 :AutoInstall: recover.vim
+" GetLatestVimScripts: 3068 9 :AutoInstall: recover.vim
" Documentation: see :h recoverPlugin.txt
" ---------------------------------------------------------------------
@@ -38,15 +38,15 @@ unlet s:keepcpo
" Modeline {{{1
" vim: fdm=marker sw=2 sts=2 ts=8 fdl=0
autoload/recover.vim [[[1
-187
+183
" Vim plugin for diffing when swap file was found
" ---------------------------------------------------------------
" Author: Christian Brabandt <cb@256bit.org>
-" Version: 0.9
-" Last Change: Wed, 02 Jun 2010 19:37:39 +0200
+" Version: 0.11
+" Last Change: Thu, 21 Oct 2010 22:57:10 +0200
" Script: http://www.vim.org/scripts/script.php?script_id=3068
" License: VIM License
-" GetLatestVimScripts: 3068 7 :AutoInstall: recover.vim
+" GetLatestVimScripts: 3068 9 :AutoInstall: recover.vim
"
fu! recover#Recover(on) "{{{1
if a:on
@@ -81,13 +81,9 @@ endfu
fu! recover#ConfirmSwapDiff() "{{{1
call inputsave()
- if has("gui_running")
- let p = inputdialog("Swap File found: Diff buffer? ", "Yes", "No")
- else
- let p = input("Swap File found: Diff buffer? ", "Yes", "custom,recover#SwapFoundComplete")
- endif
+ let p = confirm("Swap File found: Diff buffer? ", "&Yes\n&No")
call inputrestore()
- if p =~? '^y\%[es]$'
+ if p == 1
let v:swapchoice='r'
let b:swapname=v:swapname
call recover#AutoCmdBRP(1)
@@ -227,11 +223,11 @@ endfun
" vim:fdl=0
doc/recoverPlugin.txt [[[1
-141
+143
*recover.vim* Show differences for recovered files
Author: Christian Brabandt <cb@256bit.org>
-Version: 0.9 Wed, 02 Jun 2010 19:37:39 +0200
+Version: 0.11 Thu, 21 Oct 2010 22:57:10 +0200
Copyright: (c) 2009, 2010 by Christian Brabandt
The VIM LICENSE applies to recoverPlugin.vim and recoverPlugin.txt
@@ -328,7 +324,9 @@ third line of this document.
==============================================================================
4. recover History *recover-history*
- 0.10: (unreleased) : minor documentation update
+ 0.12: (unreleased) : minor documentation update
+ 0.11: Oct 19, 2010 : use confirm() instead of inputdialog()
+ (suggested by D.Fishburn, thanks!)
0.9: Jun 02, 2010 : use feedkeys(...,'t') instead of feedkeys()
(this works more reliable, although it
pollutes the history), so delete those
View
14 autoload/recover.vim
@@ -1,11 +1,11 @@
" Vim plugin for diffing when swap file was found
" ---------------------------------------------------------------
" Author: Christian Brabandt <cb@256bit.org>
-" Version: 0.9
-" Last Change: Wed, 02 Jun 2010 19:37:39 +0200
+" Version: 0.11
+" Last Change: Thu, 21 Oct 2010 22:57:10 +0200
" Script: http://www.vim.org/scripts/script.php?script_id=3068
" License: VIM License
-" GetLatestVimScripts: 3068 7 :AutoInstall: recover.vim
+" GetLatestVimScripts: 3068 9 :AutoInstall: recover.vim
"
fu! recover#Recover(on) "{{{1
if a:on
@@ -40,13 +40,9 @@ endfu
fu! recover#ConfirmSwapDiff() "{{{1
call inputsave()
- if has("gui_running")
- let p = inputdialog("Swap File found: Diff buffer? ", "Yes", "No")
- else
- let p = input("Swap File found: Diff buffer? ", "Yes", "custom,recover#SwapFoundComplete")
- endif
+ let p = confirm("Swap File found: Diff buffer? ", "&Yes\n&No")
call inputrestore()
- if p =~? '^y\%[es]$'
+ if p == 1
let v:swapchoice='r'
let b:swapname=v:swapname
call recover#AutoCmdBRP(1)
View
6 doc/recoverPlugin.txt
@@ -1,7 +1,7 @@
*recover.vim* Show differences for recovered files
Author: Christian Brabandt <cb@256bit.org>
-Version: 0.9 Wed, 02 Jun 2010 19:37:39 +0200
+Version: 0.11 Thu, 21 Oct 2010 22:57:10 +0200
Copyright: (c) 2009, 2010 by Christian Brabandt
The VIM LICENSE applies to recoverPlugin.vim and recoverPlugin.txt
@@ -98,7 +98,9 @@ third line of this document.
==============================================================================
4. recover History *recover-history*
- 0.10: (unreleased) : minor documentation update
+ 0.12: (unreleased) : minor documentation update
+ 0.11: Oct 19, 2010 : use confirm() instead of inputdialog()
+ (suggested by D.Fishburn, thanks!)
0.9: Jun 02, 2010 : use feedkeys(...,'t') instead of feedkeys()
(this works more reliable, although it
pollutes the history), so delete those
View
6 plugin/recover.vim
@@ -1,10 +1,10 @@
" Vim plugin for diffing when swap file was found
-" Last Change: Wed, 02 Jun 2010 19:37:39 +0200
-" Version: 0.9
+" Last Change: Thu, 21 Oct 2010 22:57:10 +0200
+" Version: 0.11
" Author: Christian Brabandt <cb@256bit.org>
" Script: http://www.vim.org/scripts/script.php?script_id=3068
" License: VIM License
-" GetLatestVimScripts: 3068 7 :AutoInstall: recover.vim
+" GetLatestVimScripts: 3068 9 :AutoInstall: recover.vim
" Documentation: see :h recoverPlugin.txt
" ---------------------------------------------------------------------
View
53 post.pl
@@ -0,0 +1,53 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+use WWW::Mechanize;
+
+sub GetPassword() {
+ my $i=0;
+ my @pass;
+ my $passfile="./vim_passfile"; # line1: username, line2: password
+ open(PASS, '<',$passfile) or die "Can't open passwordfile: $passfile\n";
+ while(<PASS>){
+ chomp;
+ $pass[$i++] = $_;
+ }
+ close(PASS);
+ return @pass;
+}
+
+my $sid=3068;
+my $file;
+my @files=glob('*.vba');
+#my $scriptversion=shift @ARGV;
+my $scriptversion = 0;
+my $versioncomment=shift @ARGV;
+
+
+my @userpasswordpair = GetPassword();
+for (@files) {
+ my $f = $_ if [ -f $_ ] && $_ =~ /\w+-[^.]+\.(\d+)\.vba/;
+ if ($1 > $scriptversion) {
+ $scriptversion=$1;
+ $file = $f;
+ }
+}
+
+my $mech=WWW::Mechanize->new(autocheck => 1);
+$mech->get("http://www.vim.org/login.php");
+$mech->submit_form(
+ form_name => "login",
+ with_fields => {
+ userName => $userpasswordpair[0],
+ password => $userpasswordpair[1],
+ },
+);
+$mech->get("http://www.vim.org/scripts/script.php?script_id=$sid");
+$mech->follow_link(text => 'upload new version');
+$mech->form_name("script");
+$mech->field(script_file => $file);
+$mech->field(vim_version => 7.3);
+$mech->field(script_version => $scriptversion);
+$mech->field(version_comment => $versioncomment);
+$mech->click_button(value => "upload");

0 comments on commit 13c9264

Please sign in to comment.
Something went wrong with that request. Please try again.