Buffer Bookmark Manager
Quickly store and recall buffers with F1-F4 keys.
Inspired by ThePrimeagen/harpoon.
Installation
Using vim-plug:
Plug 'mitjafelicijan/sniper.vim'
Usage
Shift-F1to store current buffer in slot 1Shift-F2to store current buffer in slot 2Shift-F3to store current buffer in slot 3Shift-F4to store current buffer in slot 4F1to recall buffer from slot 1F2to recall buffer from slot 2F3to recall buffer from slot 3F4to recall buffer from slot 4F5or:SniperListto view all stored buffers
Available functions
sniper#StoreBuffer(BufferNumber)sniper#RecallBuffer(BufferNumber)sniper#ListBuffers()
BufferNumber is a number between 1 and 4.
Default key binds
nnoremap <silent> <S-F1> :call sniper#StoreBuffer(1)<CR>
nnoremap <silent> <S-F2> :call sniper#StoreBuffer(2)<CR>
nnoremap <silent> <S-F3> :call sniper#StoreBuffer(3)<CR>
nnoremap <silent> <S-F4> :call sniper#StoreBuffer(4)<CR>
nnoremap <silent> <F1> :call sniper#RecallBuffer(1)<CR>
nnoremap <silent> <F2> :call sniper#RecallBuffer(2)<CR>
nnoremap <silent> <F3> :call sniper#RecallBuffer(3)<CR>
nnoremap <silent> <F4> :call sniper#RecallBuffer(4)<CR>
nnoremap <silent> <F5> :call sniper#ListBuffers()<CR>
