ranger-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] Getting VIM to be default text editor on Ranger in OS


From: Italo Cunha
Subject: Re: [Ranger-users] Getting VIM to be default text editor on Ranger in OSX
Date: Sat, 24 Jan 2015 06:29:20 -0200

I'm on Linux, but this should be the same on Mac.  Not sure what you
mean by bash directory.  On .config/ranger/rifle.conf (this is what
tells ranger how to open files) I have:

mime ^text,  label editor = gvim -- "$@"
mime ^text,  label pager  = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@"
!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@"

You probably need to adjust these lines in your rifle.conf file.
Setting EDITOR variable in my shell (e.g., in .bash_profile) did it
for me and should work in Mac too.  Check your EDITOR variable like
the following:

[psychopad:~/.config/ranger]% echo $EDITOR
vim

On Fri, Jan 23, 2015 at 4:16 PM, Bryan Arguello <address@hidden> wrote:
> Hi,
>
> I am trying to get this to work on my mac.  I'm running Maverick and
> installed ranger through mac port.  I have no bash directory, so I tried
> creating a bash directory and added config.bash to that directory.  However,
> Nano is still the text editor.  Do you have any advice?
>
> Thanks,
>
> -Bryan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]