Vim Buffer History banner
dhruvasagar dhruvasagar

Vim Buffer History

Development community

Description

A vim plugin to maintain a buffer jump history per window

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

VIM Buffer History 1.0.0

A vim plugin to maintain a MRU buffer jump history per window

Getting Started

Installation

Install this like any other (n)vim plugin based on the plugin manager you use

VIM API

Buffer History provides the following vim commands :

  • :BufferHistoryList: Lists the window local history of buffers visited buffers stack
  • :BufferHistoryBack: Jumps to previously visited buffer
  • :BufferHistoryForward: Jumps forward to next visited buffer when you're not already on the last one

These are also available as the following plug mappings :

  • (buffer-history-list): Set to gbl by default
  • (buffer-history-back): Set to gbp by default
  • (buffer-history-forward): Set to gbn by default

You can override these mappings by setting them in your vim configurations

Credits

This plugin took inspiration from https://github.com/ton/vim-bufsurf, with a cleaner and simpler approach to the problem.