Re: Basic vim key bindings

2022-12-18 Thread Enan Ajmain
On Sat, 17 Dec 2022 22:20:02 +0100 Christ van Willegen wrote: > https://fosstodon.org/@ids1024/109515255660791632 We probably could build a D&D campaign around this. -- Enan 3nan.ajm...@gmail.com https://git.sr.ht/~enan/ https://www.github.com/3N4N -- -- You received this message from the "vi

Patch 9.0.1072

2022-12-18 Thread Bram Moolenaar
Patch 9.0.1072 Problem:screenpos() column result in fold may be too small. Solution: Add space of 'number', sign column, etc. (closes #11715) Files: src/move.c, src/testdir/test_cursor_func.vim *** ../vim-9.0.1071/src/move.c 2022-12-05 22:26:40.255110186 + --- src/move.c 2022-1

Choices for Vim9 class implementation

2022-12-18 Thread Bram Moolenaar
You may have noticed I started implementing classes for Vim9 script. There are quite a few detailed choices to make. I have already written the documentation with the current ideas: ":help vim9class". But nothing is set in stone yet, we can discuss improvements. One thing where different langu

Re: Choices for Vim9 class implementation

2022-12-18 Thread N i c o l a s
Hi Bram, Just to remember static meaning in C/C++ : '' A static variable inside a function keeps its value between invocations ''. https://stackoverflow.com/questions/572547/what-does-static-mean-in-c/572550#572550 In C++ static class purpose is helper class and don't need to be instantiated.

Patch 9.0.1073

2022-12-18 Thread Bram Moolenaar
Patch 9.0.1073 Problem:Using "xterm-kitty" for 'term' causes problems. Solution: Remove the "xterm-" part when 'term' is set from $TERM. Detect a few kitty-specific properties based on the version response instead of the terminal name. Files: runtime/doc/term.t

Patch 9.0.1074

2022-12-18 Thread Bram Moolenaar
Patch 9.0.1074 Problem:Class members are not supported yet. Solution: Add initial support for class members. Files: src/errors.h, src/eval.c, src/structs.h, src/vim9.h, src/vim9class.c, src/vim9compile.c, src/vim9expr.c, src/vim9instr.c, src/proto/vim9instr.pro,

Re: Choices for Vim9 class implementation

2022-12-18 Thread Bram Moolenaar
> Just to remember static meaning in C/C++ : > '' > A static variable inside a function keeps its value between invocations ''. > https://stackoverflow.com/questions/572547/what-does-static-mean-in-c/572550#572550 We don't have static variables inside a function. Perhaps some day. In a class

Patch 9.0.1075

2022-12-18 Thread Bram Moolenaar
Patch 9.0.1075 (after 9.0.1074) Problem:build fails if the compiler doesn't allow for a declaration right after "case". Solution: Add a block. Files: src/vim9instr.c *** ../vim-9.0.1074/src/vim9instr.c 2022-12-18 21:42:49.014716925 + --- src/vim9instr.c 2022-1

Re: Choices for Vim9 class implementation

2022-12-18 Thread Maxim Kim
понедельник, 19 декабря 2022 г. в 00:33:24 UTC+11, Bram Moolenaar: > > > > > For object members most languages use the "this." prefix. But not > everywhere, which makes it inconsistent. A good example is a > constructor where object members that are also an argument need to be > prefixed wit