diff options
author | ben <ben@nagy.contact> | 2025-05-03 14:41:13 -0700 |
---|---|---|
committer | ben <ben@nagy.contact> | 2025-05-03 14:41:13 -0700 |
commit | ea687c769521b3139c8547a2d4a839842fa7b0fe (patch) | |
tree | f4805588bb59ca15e96d8b71124c4aafd5dd40cb /config/nvim-archive/plugin | |
parent | 16725b034eeb7122f4174f08221ab7f07b6abbf1 (diff) |
added scripts
Diffstat (limited to 'config/nvim-archive/plugin')
-rw-r--r-- | config/nvim-archive/plugin/Tabline.vim | 32 |
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() |