Custom tab name?

3 years ago by dafunkkk to c/vim

I want to assign a name to a new tab where I'v opened the :tab term cmd....I'v looked inside the guide but I need a real example of what I'v to put in vimrc. Thanks

chimay 1 point 3 years ago

normally the tab label is derived from the buffer name inside it.

for text tabline, you can customize it by defining a custom function

see :

:help setting-tabline

for gui, I guess it depends if you are using gvim/nvim-qt or sthg else.

path: 0 2802308, hotness: undefined, score: 1, children: 0
vim
vim

@lemmy.sdf.org

login for more options
1239
41
8

For Vim enthusiasts and anyone interested in Vim/Neovim!

"VIM is the greatest editor since the stone chisel." - Dr. Jose Unpingco

#HJKL

go to feed...