[lug] Vi notes
CAtkinson at Circadence.com
Fri Nov 10 12:59:46 MST 2000
you can try remapping the keys to your preference. I have no idea about the
dvorak keyboard, so I can't give you the correct mapping, but you can map
one key to the other. For example, map g j will move the cursor down one
line when you press g in the command mode. The g and j will still show up
as g and j when in insert mode.
One thing to consider though is that remapping certain keys may open a can
of worms. For example, say you mapped i to j, i.e. map i j, then when you
tried to insert, you'd move the cursor down. You will likely also have to
set noremap option when remapping to a key that has another function.
The keys that are unused in vi are gKqVv ^A^K^O^T^W^X and _*\=
I have no idea what the fill-* functions are in emacs. What are they?
Hope that helps a bit.
> -----Original Message-----
> From: Chris Riddoch [mailto:socket at peakpeak.com]
> Sent: Friday, November 10, 2000 12:38 PM
> To: lug at lug.boulder.co.us
> Subject: Re: [lug] Vi notes
> A couple things I meant to ask about vi, but didn't get around to,
> last night...
> I use a dvorak keyboard layout. There's some macros for mapping the
> qwerty keys to dvorak that come with vim, but the *real* problem is
> that 'hjkl' just isn't in the same place on a dvorak keyboard. Any
> Vi is, in my opinion, perfect for the quick-change to a configuration
> file and edits of that nature. I'd be more likely to use it if there
> is a way to do the equivalent of Emacs' fill-* functions. I suppose I
> shouldn't expect it to be a *part* of vi, since that rather goes
> against the philosophy designs of vi, so I'll ask it this way: Is
> there a filter-type program that does the equivalent of the fill-*
> Chris Riddoch
> socket at peakpeak.com
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG