From 7177de926abdfc5599c6beacae6b982f2f4d4fb5 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Fri, 12 Mar 2021 13:39:16 +0200 Subject: [PATCH] [nvim] fix ranger on Android --- nvim/plugin/files.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/plugin/files.vim b/nvim/plugin/files.vim index b9266d5..8b3d347 100644 --- a/nvim/plugin/files.vim +++ b/nvim/plugin/files.vim @@ -36,6 +36,10 @@ nnoremap empty(&buftype) ? ":writewall\" : "\" " Ranger {{{ let g:ranger_replace_netrw = 1 let g:ranger_map_keys = 0 + " The default path (/tmp/chosenfile) is inaccessible at least on + " Android/Termux, so the tempname() function was chosen because it respects + " $TMPDIR. + let g:ranger_choice_file = tempname() nnoremap o Ranger " ranger.vim relies on the Bclose.vim plugin, but I use Bbye.vim, so this " command is here just for compatitabilty