Vi Emulation possible?

rh
rhaynes
Posts: 20
Joined: Sun Jun 29, 2008 8:50 pm

Thu Jul 03, 2008 2:26 am Post

Hi folks, it is possible to use a vi emulation mode in the text windows in Scrivener?

Thanks,
R Haynes

User avatar
MarcustheBlacksmith
Posts: 220
Joined: Mon Sep 10, 2007 4:48 am
Location: Brisbane, Australia
Contact:

Sun Jul 06, 2008 12:53 pm Post

Afraid not.

Scrivener uses the Cocoa text system for its editing windows, and the Cocoa rich text system has no vi emulation mode.

If vi is your preferred environment then just kick up the terminal and run vim. You could feasibly save the plain text files you produce and import them into Scrivener to benefit from the corkboard or outlining features, should you so wish.
sincères amitiés,
Monsieur Clangy Bangy

But t'weren't the Almighty that lifted her nighty...'twas Roger the lodger, the dodger!

rh
rhaynes
Posts: 20
Joined: Sun Jun 29, 2008 8:50 pm

Mon Jul 07, 2008 12:15 am Post

Hi, there is another thread about this in the wishlist section - I found a way to do this with something called the vi input manager - with some tweaking to get it to work with Leopard I can now use VI (or at least some subset of VI) within any Cocoa based application!

R Haynes

User avatar
AndreasE
Posts: 737
Joined: Wed Apr 11, 2007 5:33 pm
Location: France
Contact:

Mon Jul 07, 2008 6:49 pm Post

Why on earth should anyone wish to write in vi??? :shock: :shock: :shock:

In my IT-developer days, whenever I had to struggle with this most-obfuscated, incredibly unintuitive, utterly unhandy editor, I always came to the point when I would have strangled its creator had he been in reach... :oops:

What did I not understand?

User avatar
AmberV
Posts: 24407
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Mon Jul 07, 2008 10:09 pm Post

That used to be all I *would* write in. Everything else feels like it would rather be a painting program with the number of times you have to reach for the rodent, or perhaps a Rachmaninoff piano concerto with the contortions you have to use in a non-modal editor where modifier keys are the only way to do things from the keyboard.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

User avatar
Jaysen
Posts: 6294
Joined: Mon Dec 17, 2007 4:00 am
Platform: Mac + Windows
Location: East-Be-Jesus-Nowhere SC, USA

Thu Jul 10, 2008 10:20 pm Post

AndreasE wrote:What did I not understand?

Choice.

Clean vs bloated. Back in the win 3.1 days vi on *nix was a dream. It is still my editor of choice for systems level work (progies, configs, and docs).
Jaysen

I have a wife and 2 kids that I can only attribute to a wiggle, a giggle, and the realization that she was out of my league so I might as well be happy with her as a friend. 26 years marriage later, I can't imagine life without her. -Me 10/7/09

ImageImage

rh
rhaynes
Posts: 20
Joined: Sun Jun 29, 2008 8:50 pm

Fri Jul 11, 2008 12:35 am Post

Hi folks, I have been successfully using vi key binding inside of scrivener (full screen mode or otherwise) for several days. Pretty much all of the vi that I use works, quickly moving from line to line, or moving 20 lines up, deleting the next 5 lines, searching for all instances of equidistribution and replacing it with equi-distribution - all without resorting to a menu, the arrow keys or a mouse! The Vi input manager works pretty well.

Cheers:-)
R Haynes

User avatar
AmberV
Posts: 24407
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Fri Jul 11, 2008 6:49 pm Post

How does it handle the rest of the system? I tried it ages ago, and back then it impacted every single text field on the system. While I love the modal system for typing and editing blocks of text, it was supreme overkill in places say, like a filter search field in the toolbar. So I ultimately unloaded it.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

rh
rhaynes
Posts: 20
Joined: Sun Jun 29, 2008 8:50 pm

Fri Jul 11, 2008 8:24 pm Post

Hi, as far as I can tell it only works in Cocoa based applications and only if you turn it on with the ` key (normally in Vi, escape puts you in command mode but escape means quite a bit more for a Mac system so they went with `).

Best,
R Haynes

User avatar
Wock
Posts: 2540
Joined: Fri Aug 24, 2007 8:09 pm
Location: Gallatin, Tennessee (USA)
Contact:

Tue Jul 15, 2008 8:14 pm Post

VI (Six) is the acronym for VISUALLY IMPAIRED

I was once in a band called Visually Impaired.
Image
Doug Cornell wrote:From the first thunderous slab of metallic power chords, Visually Impaired let you know that they aren't a typical Southern California punk band. Unlike some currently popular punkers, these guys know how to play their instruments. Not that knowing how to play is any big deal in the punk realm, but this skill may help Visually Impaired cross-over to a harder-rocking audience. The band's wall of sound comes from two electric guitars, bass, drums and vocals. The guitars are recorded LOUD, while the vocals remotely echo "intelligent punk bands" Bad Religion or Pennywise. There's no screeching here, just great melodic singing. The band understands the value of dynamics, and doesn't bludgeon you with a constant barrage of volume. Standout tracks include "Twenty Five ," with its Sabbath meets New Model Army guitar intro, or "Chorus of Angels," a track that would have been right at home on the best Bad Religion albums. The lyrics discuss themes of hopelessness and despair: "No one understands the emptiness that has surrounded you since birth. You knew in your parent's minds that you were nothing but an unpleasant surprise." Visually Impaired's music will have you reaching to turn up the volume. Punk doesn't get any better than this, so get ready to do some serious head banging.


:-)

So anytime I hear VI I get all nostalgic but I know you guys are really talking about this

http://thomer.com/vi/vi.html

:-)
The wheel is turning but the hamster is still dead.