OT, but since we were on the subject of text editors I found a vim
keybinding script that some guy made a while ago and I've modified it to
work with a hotkey app called AutoHotkey_L (check
<a href="http://www.autohotkey.net/~Lexikos/AutoHotkey_L/">http://www.autohotkey.net/~Lexikos/AutoHotkey_L/</a> ). AHK_L is a
modification of the original AutoHotkey but has some nicer features, its
Windows-only unfortunately.<br>
<br>
Right now it's just a basic script that allows you to switch from
"vim-mode" to the usual "default" mode (although I called it insert like
in vim). When you're in vim-mode, you can use the basic navigation
keys, like JKL: (I've assigned mine to IJKL however), moving the cursor
to next/previous words (and a number modifier before that to skip X
number of words).<br>
<br>
The cool thing is that it works with Scite. And if it works with Scite,
it probably works with most other Scintilla-based editors, provided that
the shortcuts are all the same there. I've tested it with PN and it
works there as well. Hell, it even works in Firefox!<br>
<br>
I've only had a brief experience with VIM a few months ago, so I don't
even know the scratch of what it offers. But I'm thinking of expanding
the script, so one could potentially use it in *any* text editor. If
there are any VIM-enthusiasts that know AHK and would like to
contribute, maybe I could set up a repo someplace. Otherwise, I'll keep
updating it for my own use atm.<br>
<br>
Download the script from here;<br>
<br>
<a href="http://www.autohotkey.com/forum/viewtopic.php?p=375239#375239">http://www.autohotkey.com/forum/viewtopic.php?p=375239#375239</a><br>
<br>
Copy-paste the code in a text file, save the file as an .ahk file. Make
sure you've got AHK_L installed and run the script. Use caps-lock to
switch between modes. Have fun.<br>
<br><br><div class="gmail_quote">On Sun, Aug 8, 2010 at 7:49 PM, Nick
Sabalausky <span dir="ltr"><a@a.a></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">"Andrej Mitrovic" <<a href="mailto:andrej.mitrovich@gmail.com">andrej.mitrovich@gmail.com</a>>
wrote in message<br>
news:mailman.189.1281288584.13841.digitalmars-d@puremagic.com...<br>
<div class="im">> Damn I must be stupid or something, I thought PN
was closed source the<br>
> last<br>
> time I checked it out. It supports Python scripting as well.. hmm.
I'll<br>
> have<br>
> to check it out. :)<br>
><br>
<br>
</div>It also has damn good handling of various UTF-encodings and
different<br>
line-endings. For instance, I see this (auto-detected) menu option and I<br>
just smile: <a href="http://www.semitwist.com/download/pn2utf.png" target="_blank">http://www.semitwist.com/download/pn2utf.png</a><br>
<br>
<br>
</blockquote></div><br>