termopen: how to set terminal buffer name?
Anyone knows whether there is a way to set terminal buffer name when calling termopen function? We have a use case of using vifm as a file picker inside nvim. Given various options provided, the default terminal buffer name created by nvim becomes very long. Also, it is visible on screen, so I would like to avoid it by changing the buffer name to something more meaningful.
Anyone knows how to do it with the termopen call? Alternatively, we tried to use :file to change the name afterwards, yet the :file command would create a unlisted buffer to hold the cumbersome buffer name.
Posted Nov 1, 2018, 5:03 PM UTC
I don't think it is possible to change the name afterwards, OTOH you can
:e term://foowhere foo is a script somewhere on your PATH that will callvifm(whatever that is) with all options you need, and then onlyterm://.//PID//fooshould be used as name.Sorry, that's the best I got. HTH.