vi: rename vim page to generic /vi
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 22 Nov 2009 04:40:03 +0000 (04:40 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 2 Dec 2009 20:58:37 +0000 (20:58 +0000)
.htaccess
index.plp
readline.inc.pl
sitemap.xml
unicode.plp
vi.inc.pl [moved from vim.inc.pl with 100% similarity]
vi.plp [moved from vim.plp with 94% similarity]

index bd6e1a7d201b83f8acfc6289b2603357bca73f2f..3e99fe8a944b1f75be19969adb054871a0d0a922 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -3,6 +3,9 @@ DirectoryIndex index.plp
 RewriteEngine  on
 RewriteBase    /
 
+# redirect old location
+RewriteRule ^vim$                    /vi [R=301]
+
 # serve vim commands when requesting /digraphs.ex as well
 RewriteRule    ^(digraphs)\.ex(/.*)?$ $1.vim$2
 
index 8897fccc5d30791744245075ef22353b2312342d..30e5864cb0c2fe2c8bec906711984ec5ec97c7ca 100644 (file)
--- a/index.plp
+++ b/index.plp
@@ -30,7 +30,7 @@ but you're free to use, print, alter, and redistribute under the AGPL license.
 <h2>Keyboard maps</h2>
 <ul>
 <li><a href="/readline">readline</a>
-<li><a href="/vim">vi/vim</a>
+<li><a href="/vi">vi/vim</a>
 <li><a href="/vimperator">vimperator</a>
 <li><a href="/mutt">mutt</a>
 <li><a href="/nethack">nethack</a>
index 5271cf22f9d7f094a3cb0e3ed3e03e05bdf82f3d..70f6227a85b7ca8ffc748b1009a6e3f674777360 100644 (file)
@@ -85,7 +85,7 @@ use utf8;
        '('  => ["start macro", 'mv'],
        ')'  => ["end macro", 'mv'],
        'e'  => ["run macro", 'mv', 'Execute'],
-       '^e' => ["editor", 'mi ext linkvim'],
+       '^e' => ["editor", 'mi ext linkvi'],
        '^g' => '^g',
        '^h' => '^u',
        '^r' => ["reload inputrc", 'mv'],
index 3ca96a7d07567f53ce7831cda700cc3bea0456b5..14d70f74bfaa57ba01ababc2c717096a1d0a9457 100644 (file)
@@ -11,7 +11,7 @@
   <priority>0.80</priority>
 </url>
 <url>
-  <loc>http://sheet.shiar.nl/vim</loc>
+  <loc>http://sheet.shiar.nl/vi</loc>
   <changefreq>monthly</changefreq>
   <priority>0.80</priority>
 </url>
index 1c2d37d7e26f66fbb74264ecf9131aea17663a19..e2c3c11ac5814315e57a9b2d0744f754b1d3b56b 100644 (file)
@@ -17,7 +17,7 @@
 <body id="unicode">
 <h1>Common uncommon Unicode</h1>
 
-<p>i^k in <a href="/">Vim</a>.
+<p>i^k in <a href="/vi">Vim</a>.
 Also see the <a href="/digraphs">complete digraphs table</a>.</p>
 
 <div class="diinfo">
similarity index 100%
rename from vim.inc.pl
rename to vi.inc.pl
diff --git a/vim.plp b/vi.plp
similarity index 94%
rename from vim.plp
rename to vi.plp
index d3dcb34291bf046ff475ff23f95ed1d895857880..9ef4103f92ba828b6e4c6aa7f6d46dfc485ad8e2 100644 (file)
--- a/vim.plp
+++ b/vi.plp
@@ -26,7 +26,7 @@
 <link rel="icon" type="image/png" href="/clip.png">
 <script type="text/javascript" src="/keys.js"></script>
 
-<body id="vim">
+<body id="vi">
 
 <h1>vi/vim cheat sheet</h1>
 
@@ -43,7 +43,7 @@
 
 <:
 use Shiar_Sheet::Keyboard;
-my $keys = Shiar_Sheet::Keyboard->new({do 'vim.inc.pl'});
+my $keys = Shiar_Sheet::Keyboard->new({do 'vi.inc.pl'});
 $keys->map($get{map}) or undef $get{map};
 $keys->print_rows($get{rows});
 :>
@@ -101,9 +101,9 @@ $keys->print_rows($get{rows});
 </div>
 
 <p class="footer">
-       <a href="/" rel="home">sheet.shiar.nl</a>/vim.<a href="/source/vim.plp"
+       <a href="/" rel="home">sheet.shiar.nl</a>/vi.<a href="/source/vi.plp"
         rel="code" title="Written in Perl">plp</a>
-       <a href="http://git.shiar.nl/sheet.git/history/HEAD:/vim.plp"
+       <a href="http://git.shiar.nl/sheet.git/history/HEAD:/vi.plp"
         rel="vcs-git" title="Git repository"><:= $VERSION :></a>
        created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
        <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"