1*sniper.txt* Sniper Plugin
2
3==============================================================================
4CONTENTS *sniper-contents*
5
61. Introduction |sniper-intro|
72. Commands |sniper-commands|
83. Mappings |sniper-mappings|
94. Functions |sniper-functions|
105. License |sniper-license|
11
12==============================================================================
131. INTRODUCTION *sniper-intro*
14
15The sniper plugin provides quick buffer storage and recall using F1-F4 keys.
16It maintains 4 slots for fast buffer switching.
17
18==============================================================================
192. COMMANDS *sniper-commands*
20
21:SniperList List all stored buffers with their status
22 Shows: [Slot] BufferName (ID) - STATUS
23
24==============================================================================
253. MAPPINGS *sniper-mappings*
26
27Normal mode mappings:
28<Shift-F1> Store current buffer in slot 1
29<Shift-F2> Store current buffer in slot 2
30<Shift-F3> Store current buffer in slot 3
31<Shift-F4> Store current buffer in slot 4
32
33<F1> Recall buffer from slot 1
34<F2> Recall buffer from slot 2
35<F3> Recall buffer from slot 3
36<F4> Recall buffer from slot 4
37
38<F5> Lists all buffer slots
39
40==============================================================================
414. FUNCTIONS *sniper-functions*
42
43sniper#StoreBuffer(pos) Store current buffer in specified position (1-4)
44sniper#RecallBuffer(pos) Recall buffer from specified position (1-4)
45sniper#ListBuffers() Display all stored buffers
46
47==============================================================================
485. LICENSE *sniper-license*
49
50BSD 2-Clause License
51Copyright (c) 2025 Mitja Felicijan
52
53Redistribution and use in source and binary forms, with or without
54modification, are permitted provided that the following conditions are met:
55
561. Redistributions of source code must retain the above copyright notice,
57 this list of conditions and the following disclaimer.
58
592. Redistributions in binary form must reproduce the above copyright notice,
60 this list of conditions and the following disclaimer in the documentation
61 and/or other materials provided with the distribution.
62
63THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
64AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
65IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
66ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
67LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
68CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
69SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
70INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
71CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
72ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
73POSSIBILITY OF SUCH DAMAGE.
74
75==============================================================================
76vim:tw=78:ts=8:ft=help:norl: