Skip to content

Commit 118afa2

Browse files
Update README.md
to add the ranger custom command option
1 parent 00b9f8a commit 118afa2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ This can be a problem if you do not have write permissions for the `/tmp` direct
6464
There is a configuration variable for this called `g:ranger_choice_file`, this must be set to the
6565
path for a file that doesn't yet exist (this file is created when choosing a file and removed afterwards).
6666

67+
### Setting a custom ranger command
68+
By default ranger is opened with the command `ranger` but you can set an other custom command by setting the `g:ranger_command_override` variable in your .(n)vimrc.
69+
70+
For instance if you want to display the hidden files by default you can write:
71+
```
72+
let g:ranger_command_override = 'ranger --cmd "set show_hidden=true"'
73+
```
74+
6775
## Common issues
6876

6977
### Using fish shell (issue #42)

0 commit comments

Comments
 (0)