How to change the default text editor in ranger?

Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
Currently, ranger will only open text files with nano, and I want it to open them with vim.
As per the Arch Wiki I have tried adding
has xdg-open, flag f = xdg-open "$1"
ext txt = vim "$@"
to rifle.conf, but that didn't work.
vim ranger
add a comment |Â
up vote
3
down vote
favorite
Currently, ranger will only open text files with nano, and I want it to open them with vim.
As per the Arch Wiki I have tried adding
has xdg-open, flag f = xdg-open "$1"
ext txt = vim "$@"
to rifle.conf, but that didn't work.
vim ranger
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
Currently, ranger will only open text files with nano, and I want it to open them with vim.
As per the Arch Wiki I have tried adding
has xdg-open, flag f = xdg-open "$1"
ext txt = vim "$@"
to rifle.conf, but that didn't work.
vim ranger
Currently, ranger will only open text files with nano, and I want it to open them with vim.
As per the Arch Wiki I have tried adding
has xdg-open, flag f = xdg-open "$1"
ext txt = vim "$@"
to rifle.conf, but that didn't work.
vim ranger
vim ranger
edited May 26 '17 at 16:56
GAD3R
23.9k1648100
23.9k1648100
asked May 26 '17 at 16:49
sam
365214
365214
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
7
down vote
I figured it out.
If you are using BASH, add the following to your .bashrc :
VISUAL=vim; export VISUAL EDITOR=vim; export EDITOR
otherwise, follow these instructions
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
I figured it out.
If you are using BASH, add the following to your .bashrc :
VISUAL=vim; export VISUAL EDITOR=vim; export EDITOR
otherwise, follow these instructions
add a comment |Â
up vote
7
down vote
I figured it out.
If you are using BASH, add the following to your .bashrc :
VISUAL=vim; export VISUAL EDITOR=vim; export EDITOR
otherwise, follow these instructions
add a comment |Â
up vote
7
down vote
up vote
7
down vote
I figured it out.
If you are using BASH, add the following to your .bashrc :
VISUAL=vim; export VISUAL EDITOR=vim; export EDITOR
otherwise, follow these instructions
I figured it out.
If you are using BASH, add the following to your .bashrc :
VISUAL=vim; export VISUAL EDITOR=vim; export EDITOR
otherwise, follow these instructions
edited 13 mins ago
alehresmann
32
32
answered May 26 '17 at 16:54
sam
365214
365214
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f367452%2fhow-to-change-the-default-text-editor-in-ranger%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password