[ZeroBrane Studio] Re: zbs-vim plugin

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: "zerobrane@xxxxxxxxxxxxx" <zerobrane@xxxxxxxxxxxxx>
  • Date: Fri, 13 Oct 2017 22:28:38 -0700

Hi Paul,

I've mostly completed my Vim editing plugin for ZBS in case anybody wants to 
have a play with it...

Looks very interesting; thank you for sharing! Couple of things I
noticed: you can probably use ide:SetStatus instead of ide:Print as
the status line is likely a better place for the information about the
current status (otherwise the lines printed in the Output panel looks
like debugging output). Also, you can add  `dependencies = "1.61"` to
the package properties and this will require 1.61+ or the repository
clone (as it doesn't have any version set). You can probably add an
initial status message to use Escape to exit the current Insert mode
(similar to how it's done on Ctrl+F). Maybe change the name to "vim",
"vimode" or something similar as "zbs" is probably redundant in the
filename.

@PaulK: you can see the SetHotKey in use at line 310, but as we discussed 
previously it would be great to retrieve and restore the original settings so 
this can be toggled.

Yes, I've been looking at that. May have something available in a day or two.

Paul.

On Thu, Oct 12, 2017 at 6:28 AM, Paul Reilly <pajthbr@xxxxxxxxx> wrote:

Hi

I've mostly completed my Vim editing plugin for ZBS in case anybody wants to
have a play with it...

https://github.com/paul-reilly/zbs-vim/blob/master/zbs-vim.lua

It requires a current clone of ZeroBrane Studio, or the upcoming release, to
avoid a runtime error on closing a document via the zbs-vim command line,
but apart from that it should work fine. The command to open a real instance
of Vim is in a Windows format, if anybody else finds this interesting/useful
and wants to add a Linux/Mac command line they are more than welcome to.

@PaulK: you can see the SetHotKey in use at line 310, but as we discussed
previously it would be great to retrieve and restore the original settings
so this can be toggled.

All the best

Paul


Other related posts: