From f391f8fcf3358c03b55c6c892e7a3311d5880576 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Fri, 10 Jul 2020 11:23:38 +0200 Subject: [PATCH] Add ranger-like Shift+S mapping to vim Convenience mapping to quickly open a shell from within vim in normal mode, just like in ranger. --- vim/plugin/shame.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/plugin/shame.vim b/vim/plugin/shame.vim index 3866c90..0f078a9 100644 --- a/vim/plugin/shame.vim +++ b/vim/plugin/shame.vim @@ -507,6 +507,8 @@ command! -nargs=? Tempfile exec 'new '.tempname() | set filetype= | au Bu onoremap al :normal! 0vg$h onoremap il :normal! ^vg_ +map S :shell + nnoremap val 0vg$h nnoremap vil ^vg_