mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-08-06 10:08:54 +02:00
add sudo, and make it simpler
This commit is contained in:
parent
031f868620
commit
b162b0dd7e
1 changed files with 4 additions and 4 deletions
|
@ -852,11 +852,11 @@ EOF
|
|||
2. Compile and build it
|
||||
|
||||
```bash
|
||||
[~]>$ g++ /tmp/killvim.cpp -o /usr/local/bin/killvim
|
||||
[~]>$ sudo g++ /tmp/killvim.cpp -o /usr/local/bin/killvim
|
||||
```
|
||||
|
||||
3. Execute it
|
||||
3. Open another Terminal and execute it
|
||||
|
||||
```vim
|
||||
:!killvim
|
||||
```bash
|
||||
killvim
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue