Does anyone know if it's possible to change the window title for nvim to this pattern:
{cwd}/{current-file} - vim
E.g.
my_project_dir/README.md - vim
I'm using nvim-qt with i3wm (I'm not sure if it matters for this).
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityDoes anyone know if it's possible to change the window title for nvim to this pattern:
{cwd}/{current-file} - vim
E.g.
my_project_dir/README.md - vim
I'm using nvim-qt with i3wm (I'm not sure if it matters for this).
You can set the 'titlestring' option to an expression that returns statusline expandos that will be evaluated by Vim and displayed in the title. E.g. use something like this:
:set title titlestring=%(%{expand(\"%:~:.:h\")}%)/%t\ -\ Vim
Read the help at :h 'statusline' and :h 'statusline' for the meaning of those items.