From 01c321b1d2b5e8bccfabbf524117554763b4c968 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 15 Feb 2011 00:40:10 +0000 Subject: Moved vimscript to README next to the bash script :) --- ranger/help/invocation.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'ranger') diff --git a/ranger/help/invocation.py b/ranger/help/invocation.py index f71e3892..465b0de8 100644 --- a/ranger/help/invocation.py +++ b/ranger/help/invocation.py @@ -70,18 +70,6 @@ command line. as . This file can be read in a script and used to open a certain file which has been chosen with ranger. - Here, for instance, is a vim script that uses ranger in vim to open files: - - fun Ranger() - silent !ranger --choosefile=/tmp/chosen - if filereadable('/tmp/chosen') - exec 'edit ' . system('cat /tmp/chosen') - call system('rm /tmp/chosen') - endif - redraw! - endfun - map r :call Ranger() - (Optional) Positional Argument The positional argument should be a path to the directory you want ranger to start in, or the file which you want to run. @@ -96,6 +84,8 @@ Examples: ranger --debug /usr/bin ranger --confdir=~/.config/ranger --fail-unless-cd +See the README on how to integrate ranger with various external programs. + ============================================================================== 5.2. Python Options -- cgit 1.4.1-2-gfad0