Hi everybody.
When launching Vim with the -w {scriptout} option, this simple edit
<https://gist.github.com/kana/4202311> allows to dump to the {scriptout}
file as Vim runs, rather than only upon exit.
The edit was originally suggested in this answer
<https://vi.stackexchange.com/questions/570/can-i-see-the-history-of-key-presses-in-normal-mode/587#587>,
but romainl <https://vi.stackexchange.com/users/54/romainl> suggested to
me, in a comment
<https://vi.stackexchange.com/questions/48591/as-of-today-can-i-see-all-keystrokes-during-a-vim-session#comment88597_48591>
that I could do a PR with that change, provided I'd create an option under
which to hide such a new behavior.
So I started investigating how I can add an option to Vim, and looking at
recent history, I stumbled into PR #19739
<https://github.com/vim/vim/pull/19739>, and eventually I tried to define a
new boolean option by mimicking the number option. I thought that this
<https://github.com/vim/vim/compare/master...Aster89:vim:master> would be a
minimal no-op implementation of a new option, but apparently that's not the
case.
Indeed, if I build the above change with this commands
$ LDFLAGS="-rdynamic" VIMRUNTIME=/usr/share/vim/vim92/ ./configure
--with-features=huge --enable-python3interp --enable-fail-if-missing
$ make -j8
and then start Vim via
VIM=. ./src/vim -Nu NONE
I get these errors:
E685: Internal error: set_string_option_direct()
E340: Internal error; if you can reproduce please report a bug
For option fencs
Press ENTER or type command to continue
Why is that?
And, more generally, is there some collection of tutorials for Vim
development, such as "how to add a new option", "how to do such and such"?
Cheers,
Enrico Maria De Angelis
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/aa005be0-8b5a-44d3-9025-40c26d0d116bn%40googlegroups.com.