1# Buffer Bookmark Manager
2
3Quickly store and recall buffers with F1-F4 keys.
4
5Inspired by [ThePrimeagen/harpoon](https://github.com/ThePrimeagen/harpoon).
6
7## Installation
8
9Using vim-plug:
10
11```vim
12Plug 'mitjafelicijan/sniper.vim'
13```
14
15## Usage
16
17- `Shift-F1` to store current buffer in slot 1
18- `Shift-F2` to store current buffer in slot 2
19- `Shift-F3` to store current buffer in slot 3
20- `Shift-F4` to store current buffer in slot 4
21- `F1` to recall buffer from slot 1
22- `F2` to recall buffer from slot 2
23- `F3` to recall buffer from slot 3
24- `F4` to recall buffer from slot 4
25- `F5` or `:SniperList` to view all stored buffers
26
27## Available functions
28
29- `sniper#StoreBuffer(BufferNumber)`
30- `sniper#RecallBuffer(BufferNumber)`
31- `sniper#ListBuffers()`
32
33`BufferNumber` is a number between 1 and 4.
34
35## Default key binds
36
37```vim
38nnoremap <silent> <S-F1> :call sniper#StoreBuffer(1)<CR>
39nnoremap <silent> <S-F2> :call sniper#StoreBuffer(2)<CR>
40nnoremap <silent> <S-F3> :call sniper#StoreBuffer(3)<CR>
41nnoremap <silent> <S-F4> :call sniper#StoreBuffer(4)<CR>
42
43nnoremap <silent> <F1> :call sniper#RecallBuffer(1)<CR>
44nnoremap <silent> <F2> :call sniper#RecallBuffer(2)<CR>
45nnoremap <silent> <F3> :call sniper#RecallBuffer(3)<CR>
46nnoremap <silent> <F4> :call sniper#RecallBuffer(4)<CR>
47
48nnoremap <silent> <F5> :call sniper#ListBuffers()<CR>
49```