Skip to content

Commit 96f2e92

Browse files
committed
1 parent 38810f7 commit 96f2e92

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
You can use the scratch plugin to create a temporary scratch buffer to store
2+
and edit text that will be discarded when you quit/exit vim. The contents
3+
of the scratch buffer are not saved/stored in a file.
4+
5+
Installation
6+
7+
1. Copy the scratch.vim plugin to the $HOME/.vim/plugin directory. Refer to
8+
the following Vim help topics for more information about Vim plugins:
9+
10+
:help add-plugin
11+
:help add-global-plugin
12+
:help runtimepath
13+
14+
2. Restart Vim.
15+
16+
Usage
17+
18+
You can use the following command to open/edit the scratch buffer:
19+
20+
:Scratch
21+
22+
To open the scratch buffer in a new split window, use the following command:
23+
24+
:Sscratch
25+
26+
When you close the scratch buffer window, the buffer will retain the
27+
contents. You can again edit the scratch buffer by openeing it using one of
28+
the above commands. There is no need to save the scatch buffer.
29+
30+
When you quit/exit Vim, the contents of the scratch buffer will be lost.
31+
You will not be prompted to save the contents of the modified scratch
32+
buffer.
33+
34+
You can have only one scratch buffer open in a single Vim instance. If the
35+
current buffer has unsaved modifications, then the scratch buffer will be
36+
opened in a new window
37+
38+
install details
39+
1. Copy the scratch.vim plugin to the $HOME/.vim/plugin directory.
40+
2. Restart Vim
41+

0 commit comments

Comments
 (0)