Last Updated: April 07, 2017
·
1.643K
· netsmertia

Better title string for Vim

A better title string with all required info. I write this because I can't find one with my requirements. Specially with small directory info when you are deep in directories of project.

Picture

| directory info (max 12 char)          | buff. no | filename | modified | Type | Row no.

set title titlestring=...%{strpart(expand(\"%:p:h\"),stridx(expand(\"%:p:h\"),\"/\",strlen(expand(\"%:p:h\"))-12))}%=%n.\ \ %{expand(\"%:t:r\")}\ %m\ %Y\ \ \ \ %l\ of\ %L