mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] fix ranger on Android
This commit is contained in:
parent
dfb049f52f
commit
7177de926a
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ nnoremap <silent><expr> <CR> empty(&buftype) ? ":write<bar>wall\<CR>" : "\<CR>"
|
|||
" 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 <silent> <Leader>o <Cmd>Ranger<CR>
|
||||
" ranger.vim relies on the Bclose.vim plugin, but I use Bbye.vim, so this
|
||||
" command is here just for compatitabilty
|
||||
|
|
Loading…
Reference in a new issue