Regarding changing the Editor

Asked by shibasipu

Hi Benjamin,

                While obtaining root file from hep file, MA5 asks to edit the Delphes card. By default, the card opens in vi editor. Is it possible to open the card in some other editor like gedit etc. ?

Thanks in advance.

Regards,
Shiba

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi Shiba,

You can supersede vi by setting the EDITOR environment variable to the program you want to use.

Cheers,

Benjamin

On 29 Sep 2016, at 14:42 , shibasipu <email address hidden> wrote:

> New question #402508 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/402508
>
> Hi Benjamin,
>
> While obtaining root file from hep file, MA5 asks to edit the Delphes card. By default, the card opens in vi editor. Is it possible to open the card in some other editor like gedit etc. ?
>
>
>
>
> Thanks in advance.
>
>
>
>
>
> Regards,
> Shiba
>
>
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
shibasipu (shibasipu) said :
#2

Hi Benjamin,
                           thanks. Where can I set the EDITOR environment variable in MA5 ?

Regards,
Shiba

Revision history for this message
shibasipu (shibasipu) said :
#3

Hi Benjamin,
                                  Or Do I need to add the EDITOR environment variable in my .bashrc ?

Regards,
Shiba

Revision history for this message
Benjamin Fuks (fuks) said :
#4

Exactly!

Cheer,

Benj

On 29 Sep 2016, at 14:52 , shibasipu <email address hidden> wrote:

> Question #402508 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/402508
>
> shibasipu posted a new comment:
> Hi Benjamin,
> Or Do I need to add the EDITOR environment variable in my .bashrc ?
>
>
>
>
>
>
>
> Regards,
> Shiba
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Best Benjamin Fuks (fuks) said :
#5

Hi Shiba,

Not in MA5, but in the bash instead: export EDITOR=…

Cheers,

Benj

On 29 Sep 2016, at 14:43 , shibasipu <email address hidden> wrote:

> Question #402508 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/402508
>
> Status: Answered => Open
>
> shibasipu is still having a problem:
> Hi Benjamin,
> thanks. Where can I set the EDITOR environment variable in MA5 ?
>
>
>
>
>
>
> Regards,
> Shiba
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
shibasipu (shibasipu) said :
#6

Thanks Benjamin Fuks, that solved my question.