vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to map the # key to a command?


From: Chris Green
Subject: Re: How to map the # key to a command?
Date: Sat, 13 May 2023 11:21:57 +0100

On Sat, May 13, 2023 at 11:09:59AM +0100, Chris Green wrote:
> On Sat, May 13, 2023 at 11:04:26AM +0100, Chris Green wrote:
> > I can map the # key to do ^Xe 'manually' when running vile simply by
> > going to the colon prompt and entering 'map ', then entering # in
> > response to 'change this string' and, finally ^Xe in response to 'to
> > this new string'.  The # key then opens the file under the cursor for
> > editing.
> > 
> > However I can't seem to get the same result by entering the map
> > command in my .vilerc file.
> > 
> > What do I need in .vilerc to get # to 'edit file under cursor'?
> > 
> It's OK, I think I've worked it out, I need to use bind-cmdmode-key to
> do it.
> 
But of course rebinding the # key has lots of repercussions! :-)  I
need to go and rethink what I'm doing!

-- 
Chris Green



reply via email to

[Prev in Thread] Current Thread [Next in Thread]