-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# How do I exit vim? | ||
|
||
The famous StackOverflow question [how do I exit vim?](https://stackoverflow.com/questions/11828270/how-do-i-exit-vim) | ||
inspired me to make a site that suggest ways to exit vim. | ||
|
||
## Add a new way | ||
|
||
Modify the [`src/data.json`](https://github.com/maggick/howdoiexitvim/blob/main/src/data.json) file. | ||
The structure for each addition is pretty straight-forward: | ||
|
||
```json | ||
{ | ||
"id":<uniq and incremental id>, | ||
"safe": <0: will save the file and exit, 1: will exit without save, 2: might have side effect>, | ||
"safe_info": "<description of the risk linked to the command>", | ||
"command": "<the command>", | ||
"command_explained": "<the command explained>", | ||
"weight":<1: for unsafe way, 2 for exit without save, 3 for safe way to exit> | ||
}, | ||
``` | ||
|
||
Feel free to submit pull requests. | ||
|
||
|