Re: [code] Is it possible to define a map leader key?

From: Mitchell <m.att.foicica.com>
Date: Sun, 21 Aug 2016 15:14:42 -0400 (EDT)

Hi Alireza,

On Sun, 21 Aug 2016, Alireza Bashiri wrote:

> I really liked the editor and I'm currently using it but is it possible to
> define a map leader key?
> for example; due to buffer:word_part_right I want to map that to <leader>w
> is it possible?
>
> w = buffer.word_right
> ,w = buffer.word_part_right

I don't know what a leader key is, but it appears you want to type one key
followed by another. You'd use a key chain like:

     keys['w'] = buffer.word_right
     keys[','] = {
       keys['w'] = buffer.word_part_right
     }

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 21 Aug 2016 - 15:14:42 EDT

This archive was generated by hypermail 2.2.0 : Mon 22 Aug 2016 - 06:49:16 EDT