Full Code of mkitt/tabline.vim for AI

master 69c9698a3240 cached
3 files
2.9 KB
963 tokens
1 requests
Download .txt
Repository: mkitt/tabline.vim
Branch: master
Commit: 69c9698a3240
Files: 3
Total size: 2.9 KB

Directory structure:
gitextract_pfv3oxfw/

├── .gitignore
├── README.md
└── plugin/
    └── tabline.vim

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
/doc/tags


================================================
FILE: README.md
================================================

<img src="https://mkitt.net/apple-touch-icon.png" width="80px" height="80px" />

# tabline.vim

Configure tab labels within Terminal Vim with a very succinct output.

![Tabline Screenshot](https://raw.github.com/mkitt/tabline.vim/master/screenshots/tabline.png)

- Tab number
- Filename (basename only)
- [+] if the current buffer has been modified

Tabs in this case, refer to Vim Tabs and not the Terminal.app tabs.

Based on settings found from [offensive
thinking](http://www.offensivethinking.org/data/dotfiles/vimrc).

## Installation
If you don't have a preferred installation method, I recommend
installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and
then simply copy and paste:

```
cd ~/.vim/bundle
git clone git://github.com/mkitt/tabline.vim.git
```

## Configuration
Currently there are no configuration variables to define, you either
rock it or you don't. This may change at some point in the future.

Make sure to set the following settings within your color theme: 

```
hi TabLine      ctermfg=Black  ctermbg=Green     cterm=NONE
hi TabLineFill  ctermfg=Black  ctermbg=Green     cterm=NONE
hi TabLineSel   ctermfg=White  ctermbg=DarkBlue  cterm=NONE
```

To enable the close button in the upper right corner, add the following to your `~/.vimrc`
```
let g:tablineclosebutton=1
```


[mkitt.net][mkitt.net] | [github/mkitt][github]

[github]: https://github.com/mkitt "@mkitt"
[mkitt.net]: https://mkitt.net "🏔"


================================================
FILE: plugin/tabline.vim
================================================
" File:        tabline.vim
" Maintainer:  Matthew Kitt <http://mkitt.net/>
" Description: Configure tabs within Terminal Vim.
" Last Change: 2012-10-21
" License:     This program is free software. It comes without any warranty,
"              to the extent permitted by applicable law. You can redistribute
"              it and/or modify it under the terms of the Do What The Fuck You
"              Want To Public License, Version 2, as published by Sam Hocevar.
"              See http://sam.zoy.org/wtfpl/COPYING for more details.
" Based On:    http://www.offensivethinking.org/data/dotfiles/vimrc

" Bail quickly if the plugin was loaded, disabled or compatible is set
if (exists("g:loaded_tabline_vim") && g:loaded_tabline_vim) || &cp
  finish
endif
let g:loaded_tabline_vim = 1

function! Tabline()
  let s = ''
  for i in range(tabpagenr('$'))
    let tab = i + 1
    let winnr = tabpagewinnr(tab)
    let buflist = tabpagebuflist(tab)
    let bufnr = buflist[winnr - 1]
    let bufname = bufname(bufnr)
    let bufmodified = getbufvar(bufnr, "&mod")

    let s .= '%' . tab . 'T'
    let s .= (tab == tabpagenr() ? '%#TabLineSel#' : '%#TabLine#')
    let s .= ' ' . tab .':'
    let s .= (bufname != '' ? '['. fnamemodify(bufname, ':t') . '] ' : '[No Name] ')

    if bufmodified
      let s .= '[+] '
    endif
  endfor

  let s .= '%#TabLineFill#'
  if (exists("g:tablineclosebutton"))
    let s .= '%=%999XX'
  endif
  return s
endfunction
set tabline=%!Tabline()

Download .txt
gitextract_pfv3oxfw/

├── .gitignore
├── README.md
└── plugin/
    └── tabline.vim
Condensed preview — 3 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3K chars).
[
  {
    "path": ".gitignore",
    "chars": 10,
    "preview": "/doc/tags\n"
  },
  {
    "path": "README.md",
    "chars": 1445,
    "preview": "\n<img src=\"https://mkitt.net/apple-touch-icon.png\" width=\"80px\" height=\"80px\" />\n\n# tabline.vim\n\nConfigure tab labels wi"
  },
  {
    "path": "plugin/tabline.vim",
    "chars": 1479,
    "preview": "\" File:        tabline.vim\n\" Maintainer:  Matthew Kitt <http://mkitt.net/>\n\" Description: Configure tabs within Terminal"
  }
]

About this extraction

This page contains the full source code of the mkitt/tabline.vim GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 3 files (2.9 KB), approximately 963 tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!