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

2023-05-13 Thread Paul Fox
chris wrote: > In the end I have used E as I never use[d] the default binding for > that. So:- > > bind-key edit-file E > > Does just what I want, gives me a single key way to edit files loaded > as a result of 'vi ' which I have just created a need for. > I might even use lower case

Re: What actually are hypertext commands in vile?

2023-05-13 Thread Chris Green
On Sat, May 13, 2023 at 10:20:14AM -0400, Thomas Dickey wrote: > On Sat, May 13, 2023 at 02:01:41PM +0100, Chris Green wrote: > > While, just now, mucking about in my .vilerc I saw the hypertext macro > > that has been there for ages (copied from help):- > > > > 22 store-macro > >

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

2023-05-13 Thread Paul Fox
chris wrote: > 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 > > >

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

2023-05-13 Thread Chris Green
On Sat, May 13, 2023 at 07:48:25AM -0400, Paul Fox wrote: > chris wrote: > > 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 > > > >

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

2023-05-13 Thread Chris Green
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 #

Re: What actually are hypertext commands in vile?

2023-05-13 Thread Thomas Dickey
On Sat, May 13, 2023 at 02:01:41PM +0100, Chris Green wrote: > While, just now, mucking about in my .vilerc I saw the hypertext macro > that has been there for ages (copied from help):- > > 22 store-macro > ~force execute-hypertext-command > ~if $status > ~force

How to map the # key to a command?

2023-05-13 Thread Chris Green
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

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

2023-05-13 Thread Chris Green
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

What actually are hypertext commands in vile?

2023-05-13 Thread Chris Green
While, just now, mucking about in my .vilerc I saw the hypertext macro that has been there for ages (copied from help):- 22 store-macro ~force execute-hypertext-command ~if $status ~force forward-character-to-eol ~endif ~endm bind-key

What do these entries in 'show-commands' mean?

2023-05-13 Thread Chris Green
In the 'show-commands' output there are entries like the following:- "edit-file" ^X-e or"E" or"e" or"find-file" ( bring given (or under-cursor) file or existing buffer into window ) I know that CTRL-X plus e opens the file under the cursor for editing,

Re: What actually are hypertext commands in vile?

2023-05-13 Thread Paul Fox
chris wrote: > On Sat, May 13, 2023 at 10:20:14AM -0400, Thomas Dickey wrote: > > On Sat, May 13, 2023 at 02:01:41PM +0100, Chris Green wrote: > > > While, just now, mucking about in my .vilerc I saw the hypertext macro > > > that has been there for ages (copied from help):- > > > > > >

Re: What actually are hypertext commands in vile?

2023-05-13 Thread Chris Green
On Sat, May 13, 2023 at 01:24:39PM -0400, Paul Fox wrote: > chris wrote: > > On Sat, May 13, 2023 at 10:20:14AM -0400, Thomas Dickey wrote: > > > On Sat, May 13, 2023 at 02:01:41PM +0100, Chris Green wrote: > > > > While, just now, mucking about in my .vilerc I saw the hypertext macro > > > >