unable to edit param card and run card on terminal after launch command in madgraph

Asked by Gagandeep Singh

The terminal opens the param card and run card files correctly but im unable to edit them like a file is usually edited in terminal. How can i properly change the parameters inside those cards by opening the file and editing from terminal itself?

Question information

English Edit question
MadGraph5_aMC@NLO Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :

Did you have configure your terminal to have setup a default text editor? (via the environment variable EDITOR)
If you did not did you edit the configuration file of madgraph to choose your text editor?

If you did not, madgraph will pick one for you and it is likely that you are going to use vi or vim:
Those editor are not in edit mode by default but in command mode. I'm not an expert of those (extremelly powerfull) editor.
But I would strongly advise anyone to know the basic of that editor (like how to go to edit mode and how to save with and without saving your change).
I guess any of those videos should do the trick:

As noted above, if you prefer another editor, you can obviously set it as needed (be carefull that some graphical one might not work properly with the interactive mode since mg5amc might not know when you have finished to edit it (and therefore does not stall long enough or stall too long)



Can you help with this problem?

Provide an answer of your own, or ask Gagandeep Singh for more information if necessary.

To post a message you must log in.