Friday, April 9, 2021

Re: vimscript & buffers

On 05.04.21 11:46, kefko wrote:
> Hello Vim(script) developers,
>
> [...]
>

UPDATE to my posting (maybe someone gets triggered)

Question: Is it possible to use vim buffers like vim threads?

Means, if i have a running loop inside of my first buffer,
then creating a new buffer, loading this and working on it,
my previous buffer is still in running state without a vim freeze...

WHY?

then i would have the possibility for VIMWIKI2WEB


a T(ea) Mug Idea (with running state buffer)



Use vimwiki vim plugin from different platforms with the
same vimwiki Index (same wiki). Using: 1 - Android vimtouch
and busybox ftp OR 2 - X86-64 vim 8 & gnu inetutils ftp



Why not droidvim&googledrive?


should run on a cheap portable platform:
Android 4.1 @ Samsung galaxy star
-> a singlecore 32bit ARM Cortex A5@1000MHz

10€@ebay :) -> yes, "a better pad of paper" and i dont have
to care about where to find it, or if someone is
taking it without my knowing ( -> thugs, thiefs or girlfriends...)
On my PC vim, of course - also.


Name of the vim wiki plugin: Vimwiki2web.vim


DEV


#1 source Plugin @ runtimepath or vim pack


normal mode commands (+ mapping)


-> Vimwiki2web Open : start()


#2 start()


-> definitions, inside of new buffer


function: close()
mappings: for vimwiki plugin (because of vimtouch)
and the close calling of vimwiki2web
variables for vimwiki2web
autocmds for vimwiki2web


-> Open(running state - per loop):


:1 Waiting till ftp is available (ping)
:2 Get wiki directory from ftp (plain text)
:2.1 when not there → create new one
:3 open wiki
:3.1 when changed files@ftp server: reload wiki files
(netrw-dirlist inside of a time interval)
:3.2 when changed files@localhost: write to ftp
(on autocommands Buf*)
:3.3 questions on data consisteny: backup files


-> Close():


:4 Buffer vimwiki close
:4.1 wipeout buffer
:4.2 deleting local files

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/3b609868-7eab-e176-46f7-c63b9c59807b%40googlemail.com.

No comments:

Post a Comment