aboutsummaryrefslogtreecommitdiff
path: root/config/nvim-archive/plugin/Tabline.vim
diff options
context:
space:
mode:
Diffstat (limited to 'config/nvim-archive/plugin/Tabline.vim')
-rw-r--r--config/nvim-archive/plugin/Tabline.vim32
1 files changed, 0 insertions, 32 deletions
diff --git a/config/nvim-archive/plugin/Tabline.vim b/config/nvim-archive/plugin/Tabline.vim
deleted file mode 100644
index 8f91b72..0000000
--- a/config/nvim-archive/plugin/Tabline.vim
+++ /dev/null
@@ -1,32 +0,0 @@
-fu! MyTabLabel(n)
-let buflist = tabpagebuflist(a:n)
-let winnr = tabpagewinnr(a:n)
-let string = fnamemodify(bufname(buflist[winnr - 1]), ':t')
-return empty(string) ? '[unnamed]' : string
-endfu
-
-fu! MyTabLine()
-let s = ''
-for i in range(tabpagenr('$'))
-" select the highlighting
- if i + 1 == tabpagenr()
- let s .= '%#TabLineSel#'
- else
- let s .= '%#TabLine#'
- endif
-
- " set the tab page number (for mouse clicks)
- "let s .= '%' . (i + 1) . 'T'
- " display tabnumber (for use with <count>gt, etc)
- let s .= ' '. (i+1) . ' '
-
- " the label is made by MyTabLabel()
- let s .= ' %{MyTabLabel(' . (i + 1) . ')} '
-
- if i+1 < tabpagenr('$')
- let s .= ' |'
- endif
-endfor
-return s
-endfu
-set tabline=%!MyTabLine()