I have the following directory structure

Current Directory




so i want to display "Artist/index.js" or "C/c/Artist/index.js" in my tabline in vim-airline


I figured it out. Sorry if it was too easy for it to be a question. Here is how to do it

let g:airline#extensions#tabline#fnamemod = ':.'
let g:airline#extensions#tabline#fnamecollapse = 0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.