Skip to content
The Chat Archive
Claudeclaude-sonnet-4-20250514· Anthropic LMArena Human Preference 140K

In vim, tabs for multiple files are displayed at the top of the screen. However when I…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with grok-3-preview-02-24’s answer.
  1. User

    In vim, tabs for multiple files are displayed at the top of the screen. However when I have too many tabs, I can't see the file names. How can I make the tabs be displayed over multiple rows so I can still read the file names?

  2. Assistant

    Vim doesn't have a built-in option to display tabs across multiple rows. The tab line is designed to show as many tabs as possible in a single row, truncating file names when space runs out.

    Here are a few approaches to work around this limitation:

    Use shorter file names in tabs: You can set set guitablabel or set tabline to customize how tab labels are displayed, showing only the filename without the path or using abbreviations.

    Switch to buffer navigation: Instead of relying heavily on tabs, consider using Vim's buffer system. You can navigate between open files with commands like :bnext, :bprev, or :buffer <name>. Plugins like fzf.vim or CtrlP make buffer switching very efficient.

    Use a plugin:

    • vim-airline or lightline.vim provide enhanced tablines with better space management
    • bufferline.nvim (for Neovim) can show buffers in a more compact way
    • vim-buftabline displays buffers as tabs with better formatting

    Adjust tab display settings:

    set tabpagemax=50  " Increase max number of tabs
    set showtabline=2  " Always show tabline
    

    The most Vim-like solution is typically to embrace the buffer workflow rather than trying to keep many tabs open simultaneously. Most experienced Vim users work with just a few tabs and rely on buffer navigation for managing multiple files.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.