We are currently using the vim-airline plugin. Add the jsformatter for JavaScript files.
This addresses the problem where JavaScript files are often named index.js. Since we are displaying file names in the tabline, all buffers will be labeled index.js (which isn't helpful).
Using jsformatter the directory is displayed in the tab name.
Screenshot from vim-airline.
How to Add
We should be able to do this by adding
let g:airline#extensions#tabline#formatter = 'jsformatter'
We are currently using the vim-airline plugin. Add the jsformatter for JavaScript files.
This addresses the problem where JavaScript files are often named
index.js
. Since we are displaying file names in the tabline, all buffers will be labeledindex.js
(which isn't helpful).Using
jsformatter
the directory is displayed in the tab name.Screenshot from vim-airline.
How to Add
We should be able to do this by adding
to
ftplugin/javascript.vim