vi in Padre?

gabor on 2008-11-13T13:30:42

Yesterday I release the first version of Padre::Plugin::CommandLine.

This is the first step in my attempts to provide a vi-ish command line for Padre users.


Whee!

Ovid on 2008-11-13T14:40:38

This is the feature which, at the end of the day, kills me with other editors: my fingers are so used to vim that I even have trouble with Notepad. I haven't been able to compile Padre on my MacBook (there was some strange Wx error -- never got as far as Padre), so I'm not able to test this right now. Wasn't overly bothered by Wx, so never filed a bug report :)

Re:Whee!

gabor on 2008-11-13T14:52:17

Talk to Schwern, he is now the local MacOS wx expert, or talk to me on #padre

I can give you the moral support

Re:Whee!

Ovid on 2008-11-13T15:08:21

I'll talk to Schwern, but ...

$probability_of_schwern_answering =
  ( $schwerns_mood - $interest_in_latest_mmorg )
    * $length_of_time_in_current_relationship * rand();

:)

Re:Whee!

Aristotle on 2008-11-13T16:35:18

Not to be a downer, but the command line alone is not what attracts me to vi. The reason I love it is the very reason most people loathe it, namely normal mode, with its separation of motion vs action (particularly in vim, where motion is a more refined concept allowing for things like text objects) and its facilities for repetition in both simple and complex ways at all scales.

The smarts in the editor interest me only quite peripherally; it’s the compositionality of its keyboard interface where the brilliance is. There is almost no automation there – the interface is extremely manual and explicit. But it’s like playing an instrument, or heck, like walking: you internalise the gestures to the point where, even though you’re doing it all manually, you’re no longer thinking about the individual motions. You perform them subconsciously while thinking in higher level goals. The computer acts as an enabling extension of the user rather than as a magic spell.

(That’s kind of the opposite of the goal of an IDE, which is why I am having to consciously try not to dismiss Padre out of hand even as I expect not to care much for it. But if it becomes all that Alias in particular is hoping for, it might become something I’ll use for Perl editing alongside vim.)

Re:Whee!

duff on 2008-11-13T22:46:53

er, me too. I've taken to playing with vimmate (http://vimmate.rubyforge.org/) of late and despite its warts, it's almost okay for the simple things I ask of it now. However, as will be painfully obvious to anyone who trys to use vimmate, it ain't there yet. Also, its goals aren't as lofty.

I like where Padre is going, and as soon as Padre incorporates vi(m) in a fashion similar to vimmate, I think I'll start using padre full time.

Re:Whee!

gabor on 2008-11-16T13:07:59

well, I also missed the vi key-bindings for navigation and the insert vs navigation vs command mode since I started to write and use Padre.

I stress missed.

As I've just added an experimental vi-mode that has the 3 modes and some really little set of the keys.

Now I suffer as I try to type vi-ish things and most of them don't yet work :-)