oh wow, chatgpt just translated a bash function into vimscript and it worked perfectly first time... it was able to translate it into lua for neovim immediately after this will make life so much easier