Re:Building a Virtual Machine Inside ChatGPT
by wohoo on Monday December 05, 2022 @06:59PM
(#33873786)
I want you to act as a VIM editor. I will type commands and you will reply with what the editor should show. I want you to only reply with the editor output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. Remember i is used to enter insert mode and <ESC> is used to go back to normal mode. My first command is: iabc<ESC>
> [Start code]
abc
[end code]
:%s/b/Z/g
>[Start code]
aZc
[end code]
{close VIM}
>As a large language model trained by OpenAI, I do not have the ability to act as a text editor, such as VIM, or execute commands within it. I exist solely as a text-generating program [...]
---------------
It has working regex engine!
then I typed:
vi newfile.txt
it spewed out a bunch of tildes
Then I typed "i" and it just returns a blank box.
Now whatever I type it returns a black box and I can't quit vim.
So ChatGPT is definitely capable of simulating what it's like to accidentially open vim on a linux terminal and not know how to quit!